Skip to content

Spring Security SAML fails in Chrome because of favicon request #11657

@mraible

Description

@mraible

Describe the bug

I created a simple example with Spring Boot 3 + SAML. In doing so, I discovered that authentication with Chrome failed more often than it succeeded. When it fails, the error message is as follows:

image

To Reproduce

Clone the following repo and run the app.

https://github.com/mraible/okta-spring-boot-saml-example

Please contact me via Twitter DM if you need credentials.

Expected behavior

I would expect to be able to log in with Chrome or Firefox. Currently, it works all the time in Firefox and every-so-often in Chrome.

Workaround

If I allow all requests to /favicon.ico, it solves the problem. See mraible/okta-spring-boot-saml-example#4 for the code.

Metadata

Metadata

Assignees

Labels

in: saml2An issue in SAML2 modulestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions