DCTAuth icon indicating copy to clipboard operation
DCTAuth copied to clipboard

Exposing OAuth2 idTokens

Open gaford opened this issue 7 years ago • 3 comments

Heya --

Currently, it does not seem like the package exposes the id_tokens generated by OAuth2 services like Google SignIn, and these are the tokens needed to authenticate to external backend services. Would it be possible to expose that token?

gaford avatar May 03 '17 22:05 gaford

Hello @gaford ,

I had the same problem, and to fix I changed those 5 files(attached). Hope @danielctull take into consideration those changes :)

DCTAuth.zip

wcaf07 avatar Jun 08 '17 03:06 wcaf07

I've been hesitant to allow access to those tokens because I would prefer the library to store the tokens in the keychain itself. Certainly if it's something that's needed I'll consider the change.

@wcaf07: Could you raise a pull request and I can take a look at the changes?

danielctull avatar Jun 08 '17 08:06 danielctull

Sure, no problems!

wcaf07 avatar Jun 09 '17 00:06 wcaf07