Replies: 1 comment
-
@joelrb ASP.NET Core authentication middleware automatically downloads and validates JWKS. Doing it yourself isn't required. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I confirm this works without any changes. Thanks!
I suggest to add also a token validator if we use JWKS.
await getToken({ template: 'apijwt' })
.https://<yoururl>.clerk.accounts.dev/.well-known/jwks.json
.`using System;
using System.IdentityModel.Tokens.Jwt;
using Microsoft.IdentityModel.Tokens;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var token = "your_jwt_token";
var jwksEndpoint = "https://_yoururl.clerk.accounts.dev/.well-known/jwks.json";
}`
Beta Was this translation helpful? Give feedback.
All reactions