Authenticate with AspNet.Security.OAuth.Spotify
I have the following code with the
AspNet.Security.OAuth.Spotify
-Package but I have no idea where the user should authenticate in the end - what is the endpoint for that?
17 Replies
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I did a second attempt today, but now with another OAuth Provider.
I have the following code:
But it still does not work when I try to access the root page
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
What should I do more?
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
You answer with yes to a what-question??
Authentication is a way for me to send the user to a auth provider which tells me if the user hast access to my app when the login is successful
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
1. My identity provider only redirects if the user has access to the application so I know, that the user has access to my app when the user gets to the fallback
2. So you mean I need Autorization too? How do I do that?
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I got most from https://developer.okta.com/blog/2019/07/12/secure-your-aspnet-core-app-with-oauth but I also used various other ressources
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Because I found nothing good in the official docs
I followed the official docs in my first attempt
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
From that I still think that I don't need autorization as the user has access to my whole app when the user has an account which is checked with authentication already
I don't know what I should check with autorization anymore
I think it works now
Somehow it does not work when protecting the page
/
but it works when protecting the folder /
But now I'm in an endless login loopUnknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Yeah but how do I do that? I already have
And it works too but I'm now in a autentication loop
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View