On Feb 6, 5:09 pm, Andrew Arnott <
andrewarn...@gmail.com> wrote:
> First we have to clarify: no part of DotNetOpenAuth allows you to login
> users using their gmail address.
>
> So I'll assume you mean that you use OpenID to allow users to log in using
> their Google account (which may have *any* email address, not just @
>
gmail.com).
Sorry, I am very new to this. You are indeed correct, I am using
OpenIdButton with Identifier="
https://www.google.com/accounts/o8/id"
to log the users in. The assemly that OpenIdButton uses is
DotNetOpenAuth so I thought it was actually DotNetOpenAuth, my
mistake:)
>
> Once that assumption is made, your original question no longer sounds
> totally sound -- you want unread messages for what email box? The
> gmail.combox may or may not exist.
After they log in, I'm checking if the email address falls under a
list of domains (our company uses google acounts but with it's own
domain name so for example, an email address may look like
a...@ourcompanydomain.com). So in this case I am checking if the logged
in email address has
ourcompanydomain.com in it.
>
> So I'll make another assumption: you want to not only log users in with
> their Google Account, but you want to ask Google for their email address,
> validate that it is in fact a @
gmail.com address, and if so, look up their
> unread message count.
>
No, I don't want to do that.
> One more question: do you really want to *log in* your users as described
> above, only accepting them if they happen to use Google and use
> @gmail.comemail addresses, or do you want to allow users to log in
> with
> *any* OpenID from any OpenID Provider, and offer a service to your users of
> reporting their unread Gmail message counts independent of how they
> happened to log into your service?
No, only the email address with the given domain names will be allowed
to access the website, else anybody can log in with a valid OpenID
from any OpenID provider but only the ones within the given domain(s)
will be able to access the webpages.
>
> OAuth must be used to look up unread message counts, and it requires that
> the user approve a request from your application to have that access. If
> you're only interested in the unread mail count of your user and not
> interested in how they log in, then pure OAuth will be the answer. If
> you *also
> *actually do want to log the user into your web application using only
> Google accounts that have @
gmail.com email addresses, then an OpenID+OAuth
> hybrid is the ticket for you.
After the users log in (and after verifying that they have certain
roles to access certain parts of the website), a count of their unread
messages from their inbox should be displayed.
Please let me know if I was clear enough or if you need any other
details.
>
> So before I go further, please tell us which scenario you fit into.
Thanks a lot for your help!.
>
>
>
>
>
>
>
>
>
> On Monday, February 6, 2012, Debarupa De wrote:
> > I am working on an
asp.net project that uses DotNetOpenAuth to login
> > users to the website with their gmail address, now the next request is
> > to get the unread email count from their inbox after they log in. Is
> > it possible? If yes, how?
>
> > Thanks for any help in advance!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "DotNetOpenAuth" group.
> > To post to this group, send email to
dotnet...@googlegroups.com<javascript:;>
> > .
> > To unsubscribe from this group, send email to
> >
dotnetopenid...@googlegroups.com <javascript:;>.