How to Validate OKTA token is valid or not in C#
We have UI application in Asp.net which is being logged-in using OKTA SSO, and Asp .net web page calling Web API, at web api we want to make sure that call is being done by valid user. For that I am looking for below solution.
Step 1:- Get token from OKTA SSO and then pass it to Web API
Step 2:- Web API will validate this token using some OKTA API to make sure that token is valid.
Question 1:- How to get OKTA SSO token at ASP.net page
Question 2:- How to validate token got in Step 1.
Thanks in advance,