Hi I am new to the Okta, I’m trying to do Okta login with OIDC+ Oauth2.0+Spring boot
Javascript code below shown here and server code not added below
var loginForm = {
initlogin: function() {
//this.loginFormSubmission();
//this.loginFormEvent();
var config = {};
Hi @andrea ,
Thank you for response, I didn’t any error msg in my eclipse console and browser console few exceptions
I add Widget shown below and server code below and browser side console error
String issuer = oktaOAuth2Properties.getIssuer();
// the widget needs the base url, just grab the root of the issuer
String orgUrl = new URL(new URL(issuer), "/").toString();
ModelAndView mav = new ModelAndView("login");
mav.addObject(STATE, state);
mav.addObject(SCOPES, oktaOAuth2Properties.getScopes());
mav.addObject(OKTA_BASE_URL, orgUrl);
mav.addObject(OKTA_CLIENT_ID, oktaOAuth2Properties.getClientId());
// from ClientRegistration.redirectUriTemplate, if the template is change you must update this
mav.addObject(REDIRECT_URI, "http://localhost:8080");
mav.addObject(ISSUER_URI, issuer);
return mav;
}
A 401 from /authn implies that the user creds are invalid.
Can you log the user into Okta directly with the credentials you’re providing? Is the user in question a local Okta user, or are they coming in from an external identity provider (i.e. a Federated or Social user)?