Seeing "alternativeLogins" error
-
I see this error:
A FreeMarker exception occurred. Exception: FreeMarker template error: Macro "alternativeLogins" has no parameter with name "federatedCSRFToken". Valid parameter names are: clientId, identityProviders, passwordlessEnabled, bootstrapWebauthnEnabled, idpRedirectState ---- FTL stack trace ("~" means nesting-related): - Failed at: @helpers.alternativeLogins clientId=c... [in template "##aa55aab6-11df-4f3d-b2cf-4b0da5f42780##templates/oauth2/authorize.ftl" at line 114, column 7] ~ Reached through: #nested [in template "##aa55aab6-11df-4f3d-b2cf-4b0da5f42780##templates/_helpers.ftl" in macro "main" at line 201, column 11]
I'm on FusionAuth 1.47. What can I do to troubleshoot it.
-
Make sure you are running 1.47.1. If you are using docker, you might need to run
docker pull
to get the latest version.There's also information in the release notes about how to modify a customized theme:
Due to the necessary change related to adding a CSRF token when performing a federated login, a manual change may be required to your themed login pages. Please read through these details to understand if you will be affected.
If you are using any 3rd party IdP configurations such as OpenID Connect, SAML v2, Google, Facebook with a custom theme, you will need to make a modification to your template in order for federated login to continue to work correctly.
If you are not using any 3rd party IdP configurations, or you are not using a custom theme, no change will be necessary.
If you will be affected by this change, please review the following details and then make the update to your theme as part of your upgrade process.
...