Replies: 1 comment 11 replies
-
You just redirect to the authorize route on the server side instead of initiating it from the client side. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi :), Love your guys work. I am building a next app with SAML SSO. I am following your guide at Add SAML SSO to Next.js App. However my next app is built with the idea of a single organization running it internally, therefore I do not need support for dynamic tenants/products.
Despite that I have been following the guide implementing it as if it were multi-tenants. However, upon the final step at Starts OAUTH Sign In Flow I do not wish the login to be initiated from the client side. I intend on only supporting SAML SSO, thus the desire is to have the user immediately redirected to the Providers login page if they are not authenticated. The suggested signIn function from 'next-auth/react' uses client-side code, I wish for the server to initiate the redirect if it detects they are not authenticated.
Does anyone have any suggestions as to how I can initiate the SAML SSO flow - from server side code - without using the client side signIn function?
Thanks for saml-jackson too, great library something that is needed. Thought I'd use it since I may use it for multi-tenant apps in future. Thanks so much for any suggestions for initialing sign in from server side.
Beta Was this translation helpful? Give feedback.
All reactions