You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the previous version of the library (gtm-oauth2), there was a way to obtain the JWT token from an authorization object using the id_token parameter. I use JWTs for cross-device authentication, so I want to get access to the token and authenticate my requests myself.
// else, the real version
if (self.currAuth != NULL) {
if (self.currAuth.canAuthorize) {
return [self.currAuth.parameters valueForKey:@"id_token"];
}
}
I don't see a way to do that with this replacement library. In particular, I don't see a parameters property for the GTMAppAuthFetcherAuthorization, and I don't see the source code for the OIDAuthState object, which is where the rest of the tokens appear to live.
The text was updated successfully, but these errors were encountered:
to add to my own question, and to add to #3, it looks like there is a way to get the id token using the Google+ sign in library. Is the user.authentication object below an GTMAppAuthFetcherAuthorization object, and if so, can we get a token from it?
- (void)signIn:(GIDSignIn *)signIn
didSignInForUser:(GIDGoogleUser *)user
withError:(NSError *)error {
// Perform any operations on signed in user here.
NSString *userId = user.userID; // For client-side use only!
NSString *idToken = user.authentication.idToken; // Safe to send to the server
NSString *fullName = user.profile.name;
NSString *givenName = user.profile.givenName;
NSString *familyName = user.profile.familyName;
NSString *email = user.profile.email;
// ...
}
In the previous version of the library (gtm-oauth2), there was a way to obtain the JWT token from an authorization object using the
id_token
parameter. I use JWTs for cross-device authentication, so I want to get access to the token and authenticate my requests myself.I don't see a way to do that with this replacement library. In particular, I don't see a
parameters
property for theGTMAppAuthFetcherAuthorization
, and I don't see the source code for theOIDAuthState
object, which is where the rest of the tokens appear to live.The text was updated successfully, but these errors were encountered: