SSO with OIDC authentication - AADSTS50011: redirect URI error

Have been running through the setup of SSO with OIDC authentication

The redirect URI was added per instructions (replacing our URL with *** here)
EG - https://***/oauth2sso/callback

When testing the SSO login we get AADSTS50011: redirect URI error -

The redirect URI 'http://***/oauth2sso/callback' specified in the request does not match the redirect URIs configured for the application

  • So we see the problem is down to the redirect in the request using http not https

  • So the question is how to we get the retool request to use https?

Configure SSO with OIDC authentication

1 Like

Hi @John_Haycock! Welcome to the community.

Are you able to share a screenshot of your SSO configuration within Retool? Feel free to DM me, as I understand that some of that information may be sensitive!

Hi @Darren, we've had advice directly from Retool that our additional_env_vars configuration needs to be updated to have the following set -

COOKIE_INSECURE=false

So once we have actioned this it should hopefully resolve this issue - as such, I'll now close this

Thanks for replying!

Makes sense! Thanks for following up here. :+1: