I have created a class ClientCredentialsFlow, which functions like
AuthorizationCodeFlow, but for client credentials. Although the steps needed
with authorization code are much more complicated, it is still useful to have a
Flow class for client credentials authentication:
* Support for credentialStore and/or credentialDataStore
* A single authorize() call which checks the store, gets the token request,
and generates a Credential
* Setting refresh listeners (although most client credentials implementations
don't support a refresh token)
I copied much of the code from AuthorizationCodeFlow, as well as a few bits
from AuthorizationCodeInstalledApp.authorize()
I have a clone shawn-google-oauth-java-client which contains the code. The
commit is at
https://code.google.com/r/shawn-google-oauth-java-client/source/detail?r=638eeed
d237134ab1665c54992bbbbfb938791fc
Original issue reported on code.google.com by sh...@knewton.com on 6 May 2014 at 8:07
Original issue reported on code.google.com by
sh...@knewton.com
on 6 May 2014 at 8:07