okta-sdk-php icon indicating copy to clipboard operation
okta-sdk-php copied to clipboard

How to exchange code for id token

Open TerjeBr opened this issue 3 years ago • 1 comments

It is documented how to exchange access code for an id token at https://developer.okta.com/docs/guides/implement-auth-code/exchange-code-token/

But I wonder if it is possible to use this okta-sdk-php to do that? Or do I have to just use my own http client implementation?

TerjeBr avatar Jul 23 '21 11:07 TerjeBr

@TerjeBr From my understanding, this SDK is designed to work with Okta's admin UI, and does not implement OAuth for endusers. However, Okta is built upon open standards such as OAuth 2.0 / OIDC, so it should work with many off-the-shelf 3rd party libraries.

aarongranick-okta avatar Jul 23 '21 20:07 aarongranick-okta