Hey all! Are there any examples of using Descope ...
# ask-a-descoper
w
Hey all! Are there any examples of using Descope with an ASP.Net Web API for Session Validation? I see there are SDKs built for NodeJS, Python and Go but not C#.NET. (We're currently using .NET 7.0) Thank you!
b
David, we do not currently have examples although should not be complicated as we use standard JWT structure so any library can validate it. Did you look at the one published here: https://stackoverflow.com/questions/58601556/how-to-validate-jwt-token-using-jwks-in-dot-net-core
w
Thank you Gilad. Apologies, newb here when it comes to JWT, will the JWT Token library then also call off to Descope to make sure the token has not been revoked and refresh the token etc?
f
@white-restaurant-69897 the library will not do that. Check this doc for details on how the session management works in Descope. You will need the library to validate the token. For refresh, if you are using our react SDK, it should be seamless. You will need to call this api to get keys for validation.
b
David, just checking in on your progress. Please let us know if you would like to jump on a call to review this together.
w
Thank you Gilad and Rishi! I shall have a go and let you know my progress.