fer626 / google-api-java-client

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

GoogleIdTokenVerifier support for specifying multiple client ids #459

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-api-java-client.googlecode.com/hg/1.8.0-beta/com/google/ap
i/client/googleapis/auth/oauth2/GoogleIdTokenVerifier.html#GoogleIdTokenVerifier
(com.google.api.client.http.HttpTransport, 
com.google.api.client.json.JsonFactory, java.lang.String)

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

The constructor accepts only a single client id.  We have a use case now where 
we need to be able to accept a set of client ids.  So it would be nice to 
either add a new constructor that accepts a set of client IDs or implement this 
via a builder pattern to specify the set of client IDs as an option.

Original issue reported on code.google.com by yan...@google.com on 18 Apr 2012 at 7:08

GoogleCodeExporter commented 9 years ago
Can we also add a method that looks something like this?

  public GoogleIdToken verify(String idTokenString) throws GeneralSecurityException, IOException {
    GoogleIdToken idToken = GoogleIdToken.parse(jsonFactory, idTokenString);
    return verify(idToken) ? idToken : null;
  }

Original comment by yan...@google.com on 18 Apr 2012 at 7:30

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/6072045/

Original comment by rmis...@google.com on 24 Apr 2012 at 4:30