Hi
I am using Angular signing-widget and Angular SDK to authenticate.
After entering my credentials, the callBackComponents gives me this error into the browser.
AuthSdkError: The redirectUri passed to /authorize must also be passed to /token
I am not sure how to fix it and also no issue found in the forum with the same problem.
Here is my login.component
this.signIn = new OktaSignIn({
baseUrl: environment.oktaConfig.issuer.split(’/oauth2’)[0],
clientId: environment.oktaConfig.clientId,
redirectUri: environment.oktaConfig.redirectUri, //localhost/idp/okta/auth/callback
authParams: {
pkce: environment.oktaConfig.pkce, //true
responseMode: ‘query’,
issuer: environment.oktaConfig.issuer,
display: ‘page’,
scopes: environment.oktaConfig.scopes,
},
})