I am trying to validate JWT Token with oauth2-proxy and Azure AD (multi tenant). The setup is working and I can log in via . This is how I run the proxy:
docker run --net=host \ --provider=oidc \ --oidc-issuer-url= \ --insecure-oidc-skip-issuer-verification=true \ --scope=[REDACTED] \ --oidc-email-claim=preferred_username \ --email-domain="*" \ --client-secret=[REDACTED] \ --client-id=[REDACTED] \ --cookie-secret=[REDACTED] \ --redirect-url="" \ --pass-access-token=true \ --pass-authorization-header=true \ --upstream=file:///dev/null \ --pass-user-headers=true \ --auth-logging=true \ --standard-logging=true \ --request-logging=true I made a small NextJS application with React MSAL so I can get my JWT token. I even verified it at and everything looks okay.
Problem occurs when I want to check validity of token. I send a request to via Insomnia and add the Authorization: Bearer <token> header, but I constantly get 401.
How can I get 202 and the token accepted? What am I doing wrong? I can not any information as to what oauth2/auth expects from me. Again, I am certain the token is valid, but I do not know how to pass it to oauth2/auth.
I am open to any solutions to validate this JWT token. I just want to either get 202 or 401. The final solution will be connected to nginx.
Related questions 652 JWT (JSON Web Token) automatic prolongation of expiration 5 Authenticate Azure API Management with OAuth2 using Azure AD 306 JWT refresh token flow Related questions 652 JWT (JSON Web Token) automatic prolongation of expiration 5 Authenticate Azure API Management with OAuth2 using Azure AD 306 JWT refresh token flow 0 Spring oauth2 server, can not validate token 554 How to decode jwt token in javascript without using a library? 2 spring security oauth2 login and resource server in same application how generate jwt token 0 How can I use Qt Network Authorization for Azure AD OAuth2 7 ASP.NET JSON Web Token "401 Unauthorized" 1 How to validate JWT token in asp .net 7 4 Azure AD B2C Graph API 401 Unauthorized Load 7 more related questions Show fewer related questions
Reset to default
