Questions tagged [jwt]
JSON Web Token (JWT, pronounced "jot") is a type of token-based authentication used in space-constrained environments such as HTTP Authorization headers. Use this tag for questions relating to the configuration, generation and usage of JWTs in your code.
18,238
questions
0
votes
0
answers
9
views
REST login service with JWT authentication fails
I'm trying to setup a REST service with JWT authentication, but it fails without hope.
The architecture of the service is based on Spring Boot 3.2. and all the latest Spring Security components.
The ...
0
votes
2
answers
11
views
Spring REST Service with spring security JWT
I'm trying to setup a REST Service with JWT authentication (I confess that many parts of the authentication process have been copied from some tutorials), it seems the code is ok, Spring compiles ...
0
votes
0
answers
7
views
"OutstandingToken.user" must be a "User" instance
I am getting this error while logging in, This is due to adding 'rest_framework_simplejwt.token_blacklist' to my settings.py, but without it everything works fine.
this is the traceback
ValueError at /...
0
votes
0
answers
10
views
Reissuing an accesstoken using a refresh token in react, apollor graphql
This is a query statement that retrieves user information. If error 401 occurs here
import { ApolloError, gql, useQuery } from '@apollo/client';
interface IUserInfo {
fetchUser: {
picture: ...
0
votes
0
answers
15
views
How to add an aud claim to a Microsoft Entra ID JWT
I am using Microsoft Identity Platform with Microsoft Entra to manage user authentication and authorization within a single tenant [web] app, and I would like to use it as an external access provider ...
0
votes
0
answers
10
views
The route is wrongly configured using JWTRefreshTokenBundle on Symfony 7.0.7
I am encountering an error when testing my /api/token/refresh endpoint with the JWTRefreshTokenBundle library. The following error appears:
Unable to find the controller for path "/api/token/...
0
votes
0
answers
14
views
Null or Empty scopes when passed to /oauth2/token giving all the scopes. When scopes are passed, getting proper response
Below is my curl. I am firing /oauth2/token endpoint in my Spring Boot security application. So when I give proper scopes in the request body. I am getting same scopes in response as well as in ...
0
votes
1
answer
27
views
req.headers.auth is undefined In jwt and express js
I'm new to use jwt library ..
So I made a login form and if it success it generates token and verify but it generates token and respond that token , but I can't get that token in req.headers....
0
votes
0
answers
25
views
Microsoft Graph APIs - 401 being generated despite access token appearing to be OK - using PHP
Essentially when I make a call to try to retrieve a document from sharepoint via its URL I am seeing a 401 - which I also see if I take the access token and use it within Postman for example.
I have a ...
-1
votes
0
answers
19
views
How to extend session.user in Auth.js? [closed]
Below follows a question on Auth.js (formerly NextAuth.js).
Background:
I am using the jwt session strategy, but would still like to store more information about a user on session.user, than what is ...
-2
votes
0
answers
48
views
Issue with Spring Security and JWT: Redirect to authenticationEntryPoint after successful login
I've been trying to solve a problem with Spring Boot Security in my application for days and I can't find the cause. Here is the flow of the application and the problem I am facing:
Application Flow:
...
0
votes
0
answers
19
views
Multi Tenant Docker App with a Authentication Server and APIs
Hi I am working on a web project and my current stack is as follows.
I have nginx for http server, nextjs for frontend and django as backend. Simple stuff.
Where you can register a company and each ...
0
votes
0
answers
37
views
Trouble getting object claims using System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler in C#
This may be important to note before reading: All this used to work before, using System.IdentityModel.Tokens.Jwt version 6.15.1. After bumping the solution from .net 6.0 to 8.0 and updating that ...
-2
votes
0
answers
22
views
InsufficientAunthenticationException: Full authentication is required to access this resource
I have upgraded spring boot version 2.x.x to 3.1.1.
I changed the configuration for bearer token validation as shown in below snippet.
private final AuthenticationFilter authenticationFilter;
...
0
votes
1
answer
23
views
.NET JWT bearer verification not handled by the framework
Why is that despite having the .well-known/openid-configuration specified in .NET auth settings - we still need to provide the all the information manually?
I my auth flow - the RSA asymmetric ...