okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

How to exchange code for id token #128

Open TerjeBr opened 2 years ago

TerjeBr commented 2 years ago

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?

aarongranick-okta commented 2 years ago

@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.