andersongraciano / google-oauth-java-client

Automatically exported from code.google.com/p/google-oauth-java-client
0 stars 0 forks source link

Create a ClientCredentialsFlow class #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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