N8
N8
CC#
Created by N8 on 4/19/2023 in #help
❔ ASP.NET Core - How to handle external authentication access tokens?
Hi all, ASP.NET Core beginner here. Where do I put external authentication access tokens after I have retrieved them? Does anyone have any links to documentation that explains how to do this well? I'm struggling to find any good documentation for beginners. I'm working on a Controller that needs to make HTTP requests to an external REST API. I'm able to make requests to the external API to get access tokens using a client ID/secret. I can also then use those access tokens to make requests to the external API. My problem now is I don't know how I'm supposed to securely store them and how I can properly re-use them without needing to request a new token every time I make a request.
46 replies