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,242
questions
-1
votes
0
answers
3
views
req.headers.authorization is undefined
So I've been trying to implement JWT authorization for my project, and there's this specific step that I've been stuck for hours... So I have a middleware setup to try and verify the access token ...
1
vote
0
answers
11
views
How to make a redirect after Login into Account
I use JWT token, send a request to receive a token, receive a token, how can I make a redirection in a convenient form after successfully completing the authentication procedure? I tried to do this ...
0
votes
0
answers
6
views
Axios Post Still Blocked Even Though "Access-Control-Allow-Origin", "*" Set On server
In my backend I've set the following endpoint
router.post("/sign-in", async (req, res) => {
try {
//Extracting email and password from the req.body object
const { email, ...
0
votes
0
answers
8
views
How to handle Authentication and private routes in React-native + Node.js?
I want a good way to handle Authentication in React-Native. I was planning on using JWT tokens and make the accessToken refresh without making the user ever log-in again(assuming they have a ...
-1
votes
0
answers
18
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
1
answer
20
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
9
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
11
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
18
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
14
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
17
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
21
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
51
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:
...