Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider not being initialized properly on startup #4

Open
rajeshkp opened this issue Oct 26, 2020 · 0 comments
Open

Provider not being initialized properly on startup #4

rajeshkp opened this issue Oct 26, 2020 · 0 comments

Comments

@rajeshkp
Copy link

rajeshkp commented Oct 26, 2020

Provider not being initialized properly on startup, while trying to access the Keycloak server from a React JS client (refer https://github.com/dasniko/keycloak-reactjs-demo) shows the following initialization error. How do we get around this config+initialization problem

Getting the following error while try to login the page with the above jar:

16:16:44,608 WARN [org.keycloak.services] (default task-18) KC-SERVICES0013: Failed authentication: java.lang.NullPointerException

at deployment.sms-authenticator.jar//jp.openstandia.keycloak.authenticator.SMSAuthenticator.getPhoneNumber(SMSAuthenticator.java:109)

at deployment.sms-authenticator.jar//jp.openstandia.keycloak.authenticator.SMSAuthenticator.authenticate(SMSAuthenticator.java:29)

at [email protected]//org.keycloak.authentication.DefaultAuthenticationFlow.processSingleFlowExecutionModel(DefaultAuthenticationFlow.java:443)

at [email protected]//org.keycloak.authentication.DefaultAuthenticationFlow.processFlow(DefaultAuthenticationFlow.java:252)

at [email protected]//org.keycloak.authentication.AuthenticationProcessor.authenticateOnly(AuthenticationProcessor.java:978)

at [email protected]//org.keycloak.authentication.AuthenticationProcessor.authenticate(AuthenticationProcessor.java:840)

at [email protected]//org.keycloak.protocol.AuthorizationEndpointBase.handleBrowserAuthenticationRequest(AuthorizationEndpointBase.java:151)

at [email protected]//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.buildAuthorizationCodeAuthorizationResponse(AuthorizationEndpoint.java:481)

at [email protected]//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.process(AuthorizationEndpoint.java:177)

at [email protected]//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.buildGet(AuthorizationEndpoint.java:116)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:564)

...

16:16:44,610 WARN [org.keycloak.events] (default task-18) type=LOGIN_ERROR, realmId=sms, clientId=sms, userId=null, ipAddress=127.0.0.1, error=invalid_user_credentials, auth_method=openid-connect, auth_type=code, response_type=code, redirect_uri=http://localhost:3000/, code_id=baf016d6-56f4-4fdb-9695-2bc8f5994bee, response_mode=fragment, authSessionParentId=baf016d6-56f4-4fdb-9695-2bc8f5994bee, authSessionTabId=B4CGVJ0bO-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant