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
-
0
votes1
answer190
viewsError with angular intercerptors
I’m trying to implement an authentication system with Angular + json web token, but when I try to make one $http.interceptors.push('nomeDo Interceptor') error in application and browser console…
-
0
votes0
answers186
viewsLaravel with JWT not authenticate by header
I’m using the Laravel 5.3 along with the JWT, but when I send the authentication by header it returns to me that I am not authenticated and I forward the token by parameter it displays me the…
-
0
votes1
answer194
viewsReceive jwt in Java functions
Good morning guys, I am with the following doubt, I created a java login function that validates user and password in a login request, if the login is successful it returns a jwt, I take this jwt…
-
0
votes0
answers542
viewsAuthentication with JWT Auth and dingo Laravel API 5.4
I authenticated with the standard user model of Laravel 5.4, but now, I did the same implementation, only with a custom model, and it’s not working. Give me back that mistake "message": "Undefined…
-
0
votes1
answer531
viewsSending token via header or param
I’m using the JWTAuth to perform token creation for my API. I saw that at the time of the request I can send the token in the header or via param. I understand that by sending via header the token…
-
0
votes1
answer348
viewsHow to change http header using (). get and (). post()?
Very briefly I need to send a jwt token in the http header of the requests, as I can change the headers of jQuery requests $.post() and $.get()? Example of how I do using Curl by prompt: curl -H…
-
0
votes1
answer816
views -
0
votes2
answers373
viewsHow to generate a RSA key pair in Windows 10?
I’m trying to use jwt, more specifically the jwt to go, but I need to generate a key pair (a public and a private) RSA, I tried to generate by puttygen but Dã error Key must be PEM encoded PKCS1 or…
-
0
votes0
answers170
viewsRequired Multipartfile Parameter 'file' is not present when I make a request through Angular 4
I can make a file upload request through Postman, but when I make the Angular request, WARN is returned "Required Multipartfile Parameter 'file' is not present" Follow my API feature made in Java…
-
0
votes1
answer490
viewsAuthentication with 3 Json Web Token (JWT) parameters?
I am doing a login system with Laravel using JWT, however I need to pass 3 parameters, being them an identifier, user and password. I can get those parameters, but I can’t authenticate with the…
-
0
votes1
answer99
viewsSending JWT without Framework
What is the best way, in terms of best practices and practicality, to simplify the process of moving a JWT? I know that with Ionic or Angular, after configuring some module for JWT, the application…
-
0
votes1
answer239
viewsProblem retrieving JWT in Angular
In the server-side I have a service using Spring Security and JWT for authentication and authorization, in the client-side I have a SPA in Angular. The problem occurs when I try to authenticate as I…
-
0
votes1
answer1118
viewsReactjs Private Routes and React Router
You can implement private routes by receiving a JWT token in the header and body information in Reactjs with React Router?
-
0
votes1
answer209
viewsLaravel 5.6 + JWT (json web token)
Good afternoon to all, I am developing an API in Laravel and intend to use JWT(Json web Token) to perform authentication and token management. I read the documentation on GITHUB, but did not…
-
0
votes1
answer480
viewsLaravel - Website Authentication and API
I am developing a Chat where it can be accessed both by the web and by an application, so I have done a project in Laravel with an api, both the site and the application will be fed through the api…
-
0
votes1
answer93
viewsAuthentication external websites
I am using JWT to authenticate access. When I try a GET request from outside my system, it displays this message: snippet of the code where I make the request (js): [...] var cep =…
-
0
votes0
answers493
viewsMicroservices architecture authentication with C#
How to make a user authentication using the default API Gateway? I’ve read several articles but can’t find an example of code using Web API 2 and those I’ve seen using the Asp net core only makes…
-
0
votes1
answer41
viewsHow to change JWT payload in Laravel?
I need to change my payload of my JWT to match the example below. { "iat": 1566408228, "exp": 1566426828, "email": "[email protected]", "name": "Fulano Silva", "roles": [ "manager" ] }…
-
0
votes1
answer509
viewsHow to Get Header Information in Post Request, Ionic 3
Hello, I need to get the Token that returns in Header after I run a POST, I would like to know a way to achieve this, I am using Ionic 3 with Angular. What is the best way to get the Authorization…
-
0
votes0
answers271
viewsProblem extracting token from incoming request header in Spring boot. Httpservletrequest.getHeader("Authorization") == null;
I made a CRUD API using Spring boot and used authentication and authorization in this CRUD with JWT (JSON web token). I have a tokenFilter class in my API which is responsible for validating tokens…
-
0
votes0
answers23
viewsAuthentication with jwt
I have a function to protect the route. Use as follows const authMiddleware = async (req, res, next) => { const token = req.header('Authorization')?.replace('Bearer ', '') if(!token) return…
-
0
votes1
answer40
viewsRedirect user without token
Talk guys, good morning, so I have a problem and I’m not sure how to solve, (maybe it’s in the way I implemented it), well: i am saving a user and his token every time I log in to my platform, in…
-
0
votes1
answer88
viewsMocha + Chai do not access routes that require authentication
Talk, y'all, good afternoon. So I’m running some tests on my Node.js API using Mocha and chai, but I have a middleware that checks my user’s token so that it can access some HTTP requirements. The…
-
0
votes1
answer70
viewsError while escaping an express js url from a middleware
I’m having a problem escaping a Url of the validation of Token. I’m using the lib jwt (jsonwebtoken) to restrict accesses to my api request, but I want to leave the url /imagem/:parametro without…
-
0
votes0
answers208
viewsValidate JWT signature with public key ECDSA (Error Decoding Signature bytes)
Good, I need help validating a json web token signed with ES256 algorithm using a public key from a .pem. file I am using a lib from Java JWT and Bouncy Castle. I have this code: String…
-
0
votes3
answers339
viewsJWT and Angular 7 returning Token null value in the application
My JWT application has the following code: my Model of user: export class User { id: number; username: string; password: string; name: string; admin: boolean; token?: string; } The ts of the Login…
-
0
votes2
answers650
viewsHow to work with JWT authentication header in Adonisjs?
To get to the point, I want to know how to work correctly with JWT on Adonisjs (I’m learning to use the framework and I’ve never worked with JWT before). My problem now is that I don’t want to keep…
-
0
votes1
answer105
viewsHow does Password Grant Tokens work on Windows?
I want to develop an application to consume a Rest api and I want to add API KEY to validate the communication between the client application and the service (cross-device validation), application…
-
0
votes1
answer276
viewsUnauthorized Token Authentication with Node, Vue, Xios and jwt
I’m in the middle of a course where on a provisional basis we’re using a fixed token validator in the application in this way: require('axios').defaults.headers.common['Autorization'] = `bearer…
-
0
votes0
answers82
viewsSend an external API token with request in Node.js
I’m new to Node.js, I have a question maybe easy to resolve... I have an Node.js application that communicates with external API in php, send and receive information through tokens, and I found a…
-
0
votes0
answers48
viewsInvalid key problem with JWT token and PHP8
Well I’m performing some tests of my project on PHP8 and I’m already refactoring it with some new features of PHP8. But I’m racking my brain with a library I use to work with JWT token. In this case…
-
0
votes0
answers36
views -
0
votes1
answer38
viewsMy JWT+Bearer token always returns me unauthorized (401) C#
I have a system for studies, totally decoupled the front-end of the back-end. I implemented JWT+Bearer, however I log in by the controller and it returns the information with the token: But when I…
-
0
votes1
answer12
viewsProblems implementing JWT authentication with NET Core 5
Hello, I’m having trouble implementing JWT in my API, I researched and looked at several tutorials on the subject and noticed that they use Identity, but I use Dapper to be able to check if the user…
-
-1
votes1
answer282
viewsProhibit direct access to a URL (JS)
I made a site, and in it I need to prevent them from entering it by accessing the URL, but I did not create Session in PHP pq login validated with token by jwt with js. Have some safe way to only…
-
-1
votes1
answer223
viewsLaravel jwt token
I am using tymondesigns/jwt-auth to generate token Is working The problem is that I want to change the validity time of the token to 1 minute to do tests I changed the jwt.php file: 'ttl' =>…
-
-1
votes2
answers400
viewsJWT TOKEN authentication is not persisting
Well, every time I Reload in my application or open and close it, I have to put the login and password, it could be some error in my code, could someone take a look? 'Cause I need when I open do…
-
-1
votes1
answer370
viewsRoute without token protection asking for token
I am trying to register a new user who is not on the route protected by middleware token jwt, but am getting the Return. { "error": "The token could not be parsed from the request" } Follows…
-
-1
votes1
answer70
viewsProblem in setar performance token
I’m having trouble authenticating my application, I do the process of inserting a token jwt to the user login, but I can’t make the application read the token or I’m losing you at some point, Repo…
-
-1
votes1
answer474
viewsProblem with Cors Laravel project 5.5 and Vuejs
In an Laravel project using the features of an API I have some logos and I have my endpoints in the Laravel.php api file <?php Route::post("auth", "Auth\AuthController@authenticate");…
-
-1
votes1
answer216
viewsGet the Token from a JWT Api
I am having problems doing the authentication in an api with JWT standard, the token it comes in header and using the retrofit I am not getting it. The consumption of the api in Postman usually…
-
-1
votes1
answer152
viewsCallback in anonymous function returns Undefined
I need to create two functions. One of them where I will make a request in Javascript to pick up a Bearer Token, and the second, I will use the token to call another function. However, I’m not…
-
-1
votes1
answer438
viewsHow to enable CORS in Java projects with JWT implementation?
I am doing a web service project, where I implemented the JWT and to consume using Reactjs I enabled the CORS, but when I make a request that needs to have the token, this returning it: Access to…
-
-1
votes1
answer44
viewsI can’t get an app token, help!
Follow my application security classes; Oauth2authorizationserverconfigjwt class public class OAuth2AuthorizationServerConfigJwt extends AuthorizationServerConfigurerAdapter{ @Autowired…
-
-1
votes1
answer44
viewsI cannot authorize my HTTP methods with the token generated by Bearer and Jwt
Good night, I am implementing authentication and authorization in my Web API in Asp.net core 5.0. Yesterday, I had success with some authorizations. However, when I went to try to finish…
-
-2
votes1
answer44
viewsPHP JWT (JSON Web Token) with library-free RSA SSL signature
Does anyone know any PHP solution for using JWT (JSON Web Token) with RSA SSL subscription without using any library? I tried both to find solutions without library or using Composer. But I couldn’t…
-
-2
votes1
answer36
viewsHow to convert the expires token to a date
Hello, I am starting my walk with Python and JWT, I am authenticating myself in an external API and I have as return the Token and the "expires_in", however the value comes in a format I need to…
-
-2
votes0
answers13
viewsAutomatic JWT authentication with onClick function
I am creating a web service to consume an api and facilitate scheduling events on google Calendar. To access this data it is necessary that the user uses a JWT token to be able to request the data…