{"repo":"descope/descope-dotnet","free":true,"listed":false,"github":"https://github.com/descope/descope-dotnet","clone":"git clone https://github.com/descope/descope-dotnet.git","description":".NET library used to integrate with Descope","language":"C#","stars":45,"topics":["authentication","authorization","descope","dotnet","dotnet-sdk","sdk"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Descope .NET SDK A .NET SDK for integrating with the Descope authentication and user management platform. Installation Client Configuration Configure the Descope client using DescopeClientOptions : Creating the Client Using Dependency Injection (Recommended) Using Factory (Instance-based) Usage Examples Authentication API Call Management API V1 Call Management API V2 Call Management Flows Management flows allow you to run server-side flows with custom input and receive dynamic output. The SDK provides a convenient extension method that deserializes the output as JSON for easy access. Token Validation The SDK provides three methods for working with session tokens: ValidateSessionAsync Validates a session JWT locally using cached public keys. The public signing keys (JWKS) are fetched from the server and cached, so most validations do not make a network call. Public key (JWKS) caching Fetched keys are cached for DescopeClientOptions.JwksCacheDuration (default 5 minutes ). Once the duration elapses, the next validation refreshes the keys; refreshes are lazy (triggered on the next validation), not on a background timer. To reduce key-fetch requests on high-traffic services, increase the duration: Raising this value is safe even during key rotation: if a token is signed with a key ID that is not already cached, the SDK performs an immediate key re-fetch (bypassing the cache duration) and retries validation once, so tokens from newly rotated keys are accepted right away. JwksCacheD","default_branch":null,"files":null,"tree":[],"storefront":"/r/descope","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/descope/descope-dotnet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}