Sourav Das
Sourav Das

Reputation: 1008

Making a persistent SSO with OAuth2 Client and ADFS 3.0

I have a hybrid(Ionic) mobile app is registered as an OAuth2 client with ADFS3.0. Now, i am doing Authorization Code Grant Method of OAuth2 as it is the only method supported by ADFS3.0. I am successfully getting the access token, and staying in the session. But, after 1 hour, when the access token expires, and ADFS asks me to enter my credentials again. How to make this a persistent SSO.

I am using Cordova Inappbrowser to call the ADFS Url.

Upvotes: 1

Views: 428

Answers (1)

rbrayb
rbrayb

Reputation: 46720

When you got the original tokens, you should have received a refresh token as well.

Then use something like:

POST xxx/token

  • grant_type=refresh_token
  • client_id=xxx
  • client_secret=yyy
  • refresh_token=token

Upvotes: 1

Related Questions