spring-projects / spring-projects/spring-security

Getting error as The response contained an InResponseTo attribute [] but no saved authentication request was found in saml2

Open
#16,091 1 comment 0 reactions 1 assignee View on GitHub

@jzheaux is already working on this.

Since Nov 14, 2024.

in: saml2 status: waiting-for-triage type: bug
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

As per the documentation, "the Spring Security uses an HttpSessionSaml2AuthenticationRequestRepository, which stores the AbstractSaml2AuthenticationRequest in the HttpSession" but when trying to use oauth0 as the IDP and trying to the controller after authentication getting error as The response contained an InResponseTo attribute [ARQ8c68bbb-2337-4bd2-98cf-d9d4d2b36024] but no saved authentication request was found, after authentication successful with the idp.
image

Reproducing:
Sample: https://github.com/sasirekha98/samlExample/tree/main
Accessing the https://mysamlexamplesp.com:8443/springSSO/samlPasswordLogin it redirects to the oauth0 page for username and password once logged in it shows the error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.