I’ve been trying to add okta to my site for almost three days now and I’m getting pretty frustrated. I’ve followed the docs exactly but I still keep getting this error when I try to login: “Unable to Login”
Here’s how I configured it in an Angular app recently. Vue should be similar. I believe the problem is you might be using the issuer in the baseUrl rather than just your Okta domain.
this.signIn = new OktaSignIn({
/**
* Note: when using the Sign-In Widget for an OIDC flow, it still
* needs to be configured with the base URL for your Okta Org. Here
* we derive it from the given issuer for convenience.
*/
baseUrl: sampleConfig.oidc.issuer.split('/oauth2')[0],
clientId: sampleConfig.oidc.clientId,
redirectUri: sampleConfig.oidc.redirectUri,
logo: '/assets/angular.svg',
i18n: {
en: {
'primaryauth.title': 'Sign in to Angular & Company',
},
},
authParams: {
issuer: sampleConfig.oidc.issuer
},
});
}