Most voted "jwt" questions
JWT (JSON Web Token) is a data transfer system, which allows data to be sent via URL, POST or in an HTTP header (header) in a "secure" manner. This information is digitally signed, for example signed with the HMAC algorithm, or a public/private key pair using RSA.
Learn more…98 questions
Sort by count of
-
51
votes1
answer7183
viewsWhat is it and what is JWT for?
I saw in some comment here on the site, in some question, talking about JWT to solve an authentication problem. I had seen the term vaguely before and I thought it was something from Java (hehehe).…
-
7
votes2
answers7184
viewsHow to set a token in the header?
Well I use jwt to generate a token only that the example I was following didn’t show exactly how to paste the token into the application header. Would anyone know how? Note: I am using the express.…
-
7
votes3
answers1959
viewsWhere should I really keep my JWT token?
In many tutorials (mostly Single Page Applications), the most common authentication method is JWT token. The problem is that most of them recommend persisting this token in the localStorage browser.…
-
6
votes1
answer1324
viewsHow to authenticate the application and authorize it to consume a restful API
In a given project, it was necessary to create a restful API that receives data from various forms spread across multiple sites hosted on different servers. The API was created to solve the…
-
6
votes1
answer2145
viewsWhat is the difference between JWT and JWS?
I asked a question a little while ago on the site regarding the JWT, which is used to create access tokens through JSON. I tried to implement JWT between two applications that use different versions…
-
5
votes0
answers315
viewsWhat is the best way to get authorization with JWT?
I asked this question earlier, but I believe I did not express myself correctly. So I am reformulating to try to be clearer. I have several Rest API, where I use basic http, to avoid direct access.…
-
5
votes2
answers836
viewsHow to set a header with a JWT token in a request made by the Requests library?
I’m using the library Requests Python to make HTTP requests. I was able to post a request quietly in order to obtain a JWT token. But now I need to send this token through a header, but I have no…
-
5
votes1
answer1207
viewsHow to access a specific http header?
I have a Rest API in Java, which makes use of JWT to authenticate users and generate tokens to access their resources. I have an application in Angularjs, which should consume these resources, but I…
-
5
votes1
answer941
viewsJWT authentication with role Claims in ASP.NET Core Identity
SOLVED - Authorize with roles With the help of this link: https://stackoverflow.com/a/47025009/10647645 And a reply in the post with the final files with the resolution UNSOLVED - Identityserver,…
-
4
votes1
answer173
viewsApplication without Back-end
I’m doing a mini-application here at the company, where it consumes an API that uses JWT authentication (login done with email and password)... As everything I’ve done so far was with PHP, I’m a…
-
4
votes1
answer4066
viewsjwt authentication with vuejs
I’m a little confused with the authentication using jwt token, I have an application in vuejs + Vue-router, I don’t want to use vuex until I learn to do it without it (I don’t like to use what I…
-
3
votes2
answers1523
viewsHow do asymmetric signatures work in JSON Webtokens (JWT)?
I recently started to study the possibility of starting to use JSON Webtokens in my projects, given their advantages. From what I understand, there is a symmetrical form and an asymmetric way of…
-
3
votes4
answers1986
viewsWhere does JWT keep the tokens?
I am following the following tutorial to create an authentication system using Node.js and JWT: https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens By following the steps of…
-
3
votes1
answer168
viewsAccess token storages (JWT token)
I am facing the need to store the access token of a user who logged in through a method with Oauth2, this JWT token will be used for my frontend application, written in React, make calls to an API…
-
3
votes1
answer709
viewsCustomization Spring Security 403
Fala galera! Follow my lead: I have an application with JWT authentication. The authentication is done in the database and I need to add now 2 more validations: failed count on login and registered…
-
3
votes1
answer176
viewsAPI with JWT authentication
Hello, I am building an API for studies and I am implementing JWT in the authentication of it. All the contents I found refer to Asp.Net Core, as I do for validate tokens in the. Net Framework? I…
-
2
votes2
answers343
viewsError installing JWT/Laravel
I’m trying to install the JWTAuth in my project. I updated my composer.json as documented: Composer.json: "require": { "tymon/jwt-auth": "0.5.*" } I ran the Composer update command and presented the…
-
2
votes0
answers25
viewsAvoid route authentication late with JWT
The JWT allows us through the method unless inform Urls and request methods that no authentication should be required. But as far as I know it is necessary to do this when Middleware is informed to…
-
2
votes1
answer207
viewsProblems with JWT token
I am using a system that, using JWT tokens pass for authentication, the problem is that I can easily collect the headers of the API calls and grab my token to be able to order whatever you want and…
-
2
votes0
answers45
viewsJWT + Spring Security without authentication
Good afternoon, you guys. I have an application where I receive a JWT token, login is treated in a separate application and in this token I get the roles. I need to use Spring Security to validate…
-
2
votes1
answer175
viewsJWT IN JAVA (SPRING BOOT)?
I’m doing a project, where I have a login. Front-end use in Reactjs, and backend in Java. But I don’t know how to make a java JWT token so that the front end can be successfully logged in. I read…
-
2
votes1
answer721
viewsQuestions about Authentication Token (JWT)
For a while I used the Json Web Token (JWT) to do the entire authentication process of most systems on which I work on Node.js. But today, developing one of my personal projects, I took a look at…
-
2
votes0
answers111
viewsLaravel and JWT - Does not generate token (invalid credentials)
I’m having a problem using the following code: $credentials = $request->only('email', 'senha'); try { if(! $token = JWTAuth::attempt($credentials)){ return response()->json(['error' =>…
-
2
votes2
answers283
viewsjwt.Decode - what is the need for a list of algorithms?
I am studying Python and needed to solve an exercise using JWT (JSON Web Tokens). It was necessary to create a token and verify the validity, searching for example codes, found in the documentation…
-
2
votes1
answer115
viewsHow to remove double quotes from the beginning and end of a Dart variable?
Speak devs, all right? I am unable to remove double quotes from the beginning and end of a Dart variable. I post to my Web API and receive a JWT Object. I only need the value of the object, without…
-
1
votes1
answer55
viewsNew fields stay nil, what to do?
I’m deploying token and authentication, I’m using JWT and Devise, I’m having a problem with Devise, I don’t want to use email for authentication, I want to use a license plate, so I read the Devise…
-
1
votes1
answer300
viewsHow to send browser token to server?
How to send jwt token from browser to php server each request? Every time I study about using a token only shows how to create, not how to actually use, in the image below shows that you return the…
-
1
votes2
answers7102
viewsTypeerror: Extractjwt.fromAuthHeader is not a Function
I’m having some problems with Passaport.js. When I try to run my api, the terminal returns an error. I went to the file in question and found nothing wrong. I did a web search, but the solutions I…
-
1
votes1
answer97
viewsJWT and Identity MVC 5
Salve galera, I’m looking for how to use both (JWT with Identity MVC 5), but I can’t find anything about it, I just found it for Identity . Net Core 2, this is not good for me because the…
-
1
votes1
answer490
viewsHow to check JWT on each request
I’m doing a login system on php and trying to authorize with JWT. I’m not using any library, I made a class called Jwt that I pass the vestments and Token and also step the token and returns me an…
-
1
votes0
answers75
viewsCommunication with jwt between two APIS
Staff would like a recommendation: I own an angular site that communicates with an API[API 1] Asp net core and authentication is done via jwt token. This API communicates with another API[API2] also…
-
1
votes1
answer403
viewsError while accessing route released with Spring boot
Good afternoon I am having a problem in releasing routes for my application made with Spring boot. The problem is that the "/home" main route asks for the JWT token to access it, but it is…
-
1
votes1
answer430
viewsError Creating bean with name 'springSecurityFilterChain' defined in class path Resource
org.springframework.Beans.factory.Beancreationexception: Error Creating bean with name 'springSecurityFilterChain' defined in class path Resource…
-
1
votes0
answers56
viewsJWT and Passport returns 401 React
good afternoon. I am learning JWT and Passport and I am facing problems with the same, the problem is the following, I can log in and save in Localstorage, and redirect to another page however, even…
-
1
votes0
answers135
viewsHow to configure the Slim 3 passthrough?
I’m trying to build a simple API for study with Slim Framework and Jwtauthentication. In case my path /auth returns a JSON containing the JWT token that will be used to access the other paths. But…
-
1
votes0
answers250
viewsGenerating jwt manually using JAVA, but jwt.io does not validate
I am trying to manually generate JWT in Java without using libs, but the returned JWT is not being validated by the web application https://jwt.io/. public String authenticateUser(String body) { try…
-
1
votes2
answers257
viewsPassing the token of an Angularjs controller to an Laravel API
I am trying to pass the token that I have my controller to authenticate into an API in Laravel. However I am encountering the error: "token_not_provided" Note: I am using the Jwtauth with Laravel…
-
1
votes1
answer914
viewsHow can I get the JWT token after authenticating?
I have a spring-boot Rest API which, when a user authenticates the api returns the jwt token, I noticed in the browser that the token appears in Response Header > Authentication and in tests with…
-
1
votes0
answers31
viewsLoad JWT Signature key from a dynamic base
I implemented an Authorization Server using AuthorizationServerConfigurerAdapter and users and customers are configured from the implementation of services UserDetailsService and…
-
1
votes2
answers294
viewsHttpinterceptor null token (Angular 7)
Hello! Time to "pick up" the token on Httpinterceptor is coming as null. follow code d Interceptor: import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent,…
-
1
votes1
answer448
viewsCors error in the Laravel when using middleware jwt.auth
When I try to make an http request inside my jwt.auth middleware I receive: :9000/#/Dash/typeproducts:1 Access to Xmlhttprequest at 'https://api2.jcontrole.com.br/api/notificacoes/gerais' from…
-
1
votes0
answers187
viewsHow to authenticate with token (JWT)?
Good night, you guys! I have tried 3 different ways, but the closest I got was the code I will post below, I am developing an application as a study using Angular and Python and currently I already…
-
1
votes0
answers427
viewsHow to extract Header Token to store in Local Storage?
Good night, you guys! I’m in a battle to get back the token I send from my backend to my browser. Follow my Back code in Python: class Login(Resource): def post(self):…
-
1
votes2
answers1137
viewsStore JWT token and redirect
I created a login screen and when I click login I get back a JWT token and its expiration. What I want to do is store this token and redirect it to another page. I know I have to do the…
-
1
votes0
answers153
viewsHow do I get my token in the header?
Guys, I’m 'stuck' in this part of the code, I’m generating my token pro browser but I can’t access it to save in my localStorage. I can’t, in any way access my header this way, every time returns…
-
1
votes2
answers465
viewsWhich method to use to log a user (JWT cookie vs SESSION)
So, my doubt is the following, which is the best method to create a login "session" for the user. I learned to create this session using JWT in cookie, however the cookie is accessible by the…
-
1
votes1
answer104
viewsNodejs / Reactjs: Manipulating Token
I’d like your help. I have an API with Nodejs that performs user authentication (POST method), generating a Token (jwt) and returning the same: module.exports = { async authenticate(req, res) {…
-
1
votes0
answers58
viewsHow can I redirect my user to another screen by passing a HEADER with Nodejs
I’m doing the authentication/authorization part of my application, and I need to pass through my screens always passing the TOKEN through the HEADER, but I can’t redirect my user passing the TOKEN…
-
1
votes0
answers119
viewsToken refresh with JWT and Node.JS
I am making an API to understand how the Json Web Token, But he’s very simple, you know? So I can’t find content on how to do a token refresh that only lasts 5 minutes in a way that would be simple…
-
1
votes0
answers49
viewsAPI access control using Flask JWT Extended
Hello. I am working on an API (Flask/Python) that should receive requests from an application (React-Native) and a Webapp (Flask/Python). For some requests you will need the login control. I am…