Add secure sign in to your n8n apps with a simple redirect and callback. Users log in through your identity provider, and their basic profile is fetched to control access. Great for teams that need to protect internal tools or forms without writing code.
The flow starts at a login webhook that stores your app keys and redirects the user to the hosted login page. After sign in, the callback webhook receives a code. A smart check confirms the code is present and shows a clear error if it is missing. The flow then swaps the code for an access token and calls the userinfo endpoint to get a verified email and profile. All values move through Set nodes, and HTTP Request nodes handle the token exchange and profile fetch.
Setup is simple. Create a Single Page Application in your identity provider, add the callback URLs, and paste the domain, client id, and client secret into the Set nodes. Expect faster onboarding and fewer access mistakes because sign in is handled in one place. Use this to guard admin panels, internal request forms, or any workflow that must run only for known users.