Usage of Application login URI
It's unclear to me what the URI of the Application login URI should be. I've read the docs and searched this support channel, but still not clear.
The docs state "This is the default login route for resolving session issues. Hits the /auth endpoint to redirect back to your application sign in page.", however this isn't clear because Kinde is my sign in page...
Do you mean that the endpoint provided should redirect to Kinde? For example, my auth endpoint is https://www.bestofcitrusheights.org/Account/Login?returnUrl=https%3A%2F%2Fwww.bestofcitrusheights.org%2F. This endpoint simply redirects to Kinde to start a sign in process. Is that what I should be using here, or should I be providing the callback URI that receives the auth code from Kinde AFTER a sign in process?
Bonus question: How do I emulate this URI needing to be used so I can test that everything is working correctly?
3 Replies
Hey @ryno1234.,
I am sorry this was not clear in the docs. This sounds like an opportunity to make our docs better.
The Application login URI is intended to be a route in your application that initiates the authentication process with Kinde. It's not the Kinde sign-in page itself, but rather a route in your application that redirects to Kinde for authentication.
In your case, the URL you mentioned (https://www.bestofcitrusheights.org/Account/Login?returnUrl=https%3A%2F%2Fwww.bestofcitrusheights.org%2F) seems to be the correct approach. This endpoint in your application should handle the redirection to Kinde to start the sign-in process.
Please let me know if you have anymore questions on this.
Bonus question: How do I emulate this URI needing to be used so I can test that everything is working correctly?I replicated this in your platform by doing the following: 1. Going to https://www.bestofcitrusheights.org/Account/Login?returnUrl=https%3A%2F%2Fwww.bestofcitrusheights.org%2F 2. Registering an account with email + password and authenticating 3. Going to https://www.bestofcitrusheights.org/Account/Login?returnUrl=https%3A%2F%2Fwww.bestofcitrusheights.org%2F in a new tab 4. Click sign in 5. Sign in with same email + password 6. Clicking back on the tab (twice) to go back to sign in page with enter email 7. Entering same email Let me know if you are having trouble replicating this.
Thanks Oli
No worries @ryno1234.
Please reach out if you have any other questions.