Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown state in response

esk March 8, 2020 edited

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
Contributor
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events