Re: [Imap-protocol] OAUTH and IMAP

Arnt Gulbrandsen <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
> * Authorization endpoint: Arguably the biggest flaw in the 
> entire process is that I see no way to build the HTTPS request 
> to an OAuth authorization endpoint without hardcoding specific 
> values.

+1 on this.

> * Refresh tokens: Google's documentation on this is vague. At 
> times, it implies that these last essentially forever unless the 
> user revokes access. At other times (and apparently in 
> experiments), it seems that these last only for long-ish terms 
> (e.g., a few weeks).

Both are sort of true: Every time you use the refresh token you restart the 
clock.

You may look at it like this: The access token is short-lived and often 
exposed on the wire. But if snooped, the snooper has only brief access and 
cannot extend the access period. The refresh token is exposed less often, 
but is valid for a long time. It's like a client-specific revocable 
subpassword.

I implemented it and quited liked the behaviour.

Arnt

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.