a question is it possible to use okta widget to grap the authorization code only and then send it from front end to back end for token exchange?
and if so do the admin need to change any thing??
is this code correct?
let signIn = new OktaSignIn({
baseUrl: ‘https://{{company}}.okta.com/’,
clientId: ‘id’,
redirectUri: ‘http://localhost:8080/authorization-code/callback’,
authParams: {
responseType: [‘code’]
},
});
Hi, The Authorization code can be implemented with both the Front Channel and Back Channel. You can have the /authorize call in the front channel wherein the user enter his credentials, completes any MFA and gets back the authorization code
This code can be sent to the backend from where it can be exchanged for a token by the /token endpoint.