Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unknown state in response

esk March 8, 2020

We're trying to setup SSO on our Bitbucket DC instance with OIDC and we're seeing this error after logging in on our IDp(Keycloak).

com.atlassian.plugins.authentication.impl.web.usercontext.AuthenticationFailedException: Unknown state in response

Does anymore have more info on the error?

The stack trace is

com.atlassian.plugins.authentication.impl.web.usercontext.AuthenticationFailedException: Unknown state in response
	at com.atlassian.plugins.authentication.impl.web.oidc.OidcConsumerServlet.lambda$doGet$0(OidcConsumerServlet.java:103)
	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
	at com.atlassian.plugins.authentication.impl.web.oidc.OidcConsumerServlet.doGet(OidcConsumerServlet.java:103)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:46)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

 

4 answers

0 votes
Joe Red November 3, 2022

I am getting this error after a user as already been into the application. Now they cannot get in and the logs are saying Unknown State in Response.

 

Any help?

0 votes
Laurent s November 9, 2021

hi

i've got same problem with confluence and Cas Apero OIDC. I'm not sure what to write in "username claim"

i try with {sub} or {id} or something else, and i"ve always the same error

a solution for someone ?

0 votes
Reab May 3, 2021

@esk I'm facing this issue, were you able to solve it? 

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2021

Hi! 

Have you tried to clean config and do it from scratch? 

Reab April 20, 2021

Hi. Which config to clean?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events