Add redirect for SSO

0
Hello,   We're currently transitioning our application from SAML to OIDC for authentication. Many of our existing users have bookmarked the old SAML login URL (appUrl/SSO/), and we want to ensure those bookmarks continue to work seamlessly. To achieve this, I'm considering implementing a redirect from appUrl/SSO/ to the new OIDC login endpoint at appUrl/oauth/v2/login. However, I'm unsure about the best way to set up this redirect. Any help would be greatly appreciated.   Best regards Niklas
asked
1 answers
0

If your application is running behind an nginx / apache you can impose a 301 or 302 redirect at that reverse proxy ( I would suggest 302 since 301 redirects can be cached by the browsers. But if you are for sure you will not need to change it in future again, you can use 301 redirect.)

 you can add the following to your existing Nginx config

location /SSO/ {
    return 302 /oauth/v2/login?$query_string;
}

 

 

answered