Skip to content

Improve error handling for the SAML login endpoint when the caller is missing a Content-Type request header #2722

@robotdan

Description

@robotdan

Improve error handling for the SAML login endpoint when the caller is missing a Content-Type request header

Description

When the caller omits the Content-Type ideally we want to provide a nice error message.

If you send a request body to /samlv2/login w/out a Content-Type header, or using an un-supported value, the error will not be displayed nicely.

Instead you'll see something ugly in the logs

Error org.primeframework.mvc.PrimeMVCRequestHandler - Error encountered
org.primeframework.mvc.PrimeException: Missing result for action class [class io.fusionauth.app.action.samlv2.LoginAction] URI [/samlv2/login] and result code [input]

Additionally, ignore the binding request parameter if present.

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Delivered

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions