I am unable to register a user with Okta OEI.
Below is the okta configuration
export const oktaClient = () => {
return new OktaAuth({
issuer: 'https://{customAuthzServer}/oauth2/{customAuthzServerID}',
clientId: 'OIDCAppClientID',
redirectUri: 'https://localhost.test.myapp.com:3001/callback',
scopes: ['openid', 'profile', 'email'],
pkce: true,
useInteractionCodeFlow: true
});
};
React app configuration to use idx.register
const oktaAuth = oktaClient();
const transaction = await oktaAuth.idx.register({
firstName: this.state.firstName,
lastName: this.state.lastName,
email: this.state.email,
authenticators: ["okta_password"] // even tried with authenticators: ['password']
});
I am able to get a status as ‘PENDING’
but the below configuration calls only /introspect and /enroll
const {
pwdstatus, // IdxStatus.SUCCESS
tokens
} = await oktaAuth.idx.proceed({
password: 'mytestPwd'
});
console.log(pwdstatus)
const {
proceedstatus, // IdxStatus.SUCCESS
} = await oktaAuth.idx.proceed({
skip: true
});
console.log(proceedstatus)
Please let me know if there are any changes required Profile Enrollment or the register call to Okta?
