After setting up SAML authentication in Foglight with Okta, the SAML login link doesn't work and shows SAML Login Failed.
In some cases the login fails after upgrade to Foglight 6.x
Foglight SAML metadata certificate was not imported into Okta.
In some cases the issue is due to unset Default Relay State.
The settings in Okta should be found in the metadata.xml file. The metadata.xml file can be downloaded from the FMS at:
Note 1: there needs to be at least one attribute specified under Attribute Statements with Name format of Basic. The name for this attribute will need to match the Attribute Key in the SAML 2.0 SSO Configuration dashboard in Foglight.
Note 2: The FMS URL in the Default Relay State field is required for IdP initiated login (i.e. logging into Okta and selecting Foglight from a list). It's also required after upgrading to Foglight 6.
The SAML settings for Foglight should be found in Okta by clicking on the button in the screenshot below.