N8
Explore posts from servers❔ ASP.NET Core - How to handle external authentication access tokens?
Last question: do you both have any recommendations for any good courses for ASP.NET Core? I'm a newly grad with very limited experience in Java Spring, so I can make some connections, but overall it's new to me and I'd love to take the time to learn the in's and out's of this. I'm open to Udemy course recommendations, textbook recommendations, etc
46 replies
❔ ASP.NET Core - How to handle external authentication access tokens?
From what I understand:
1. I need to create a Token Factory to handle specific functionalities like retrieving new tokens and returning it, or returning existing tokens that haven't expired, or renewing an existing token
2. I then make an HttpMessageHandler that injects the token factory. That HttpMessageHandler will make requests to the external API and will use methods from the token factory whenever a token is needed?
3. I use that HttpMessageHandler in my Controller whenever I need to make calls to the external API?
46 replies
❔ ASP.NET Core - How to handle external authentication access tokens?
Is it OK if I ask a few follow-up questions to confirm my understanding of your explanation? (I'm still very new to ASP.NET Core and Dependency Injection in general, so I may ask some silly questions)
46 replies