fusionauth-issues
fusionauth-issues copied to clipboard
`federated.csrf` cookie is not created in some cases
federated.csrf
cookie is not created in some cases
Description
The federated.csrf
cookie (required for IdP logins since version 1.47.0
) is not written by the /oauth2/authorize
page when
- An
idp_hint
query string parameter is provided in the URL -and- - All configured IdPs for the application are configured to use Managed Domains
Observed versions
1.49.2
Affects versions
>= 1.47.0
Steps to reproduce
- From a fresh install
- Create an Identity Provider with a Managed domain (see screenshot)
- Enable the IdP for one or more applications
- Navigate to the
/oauth2/authorize
page for the application and include theidp_hint
query string parameter - The user will be redirected to the IdP automatically
- Navigate back to the FusionAuth URL and inspect cookies
- There is no
federated.csrf
cookie written
Expected behavior
The federated.csrf
cookie should be written when redirecting to an external IdP based on the idp_hint
parameter.
Screenshots
Community guidelines
All issues filed in this repository must abide by the FusionAuth community guidelines.