Questions tagged as 'jwt'

1
answer

Sending the token via header or param

I'm using JWTAuth to create tokens 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 the header the token accompanies the request in a "transparent" w...
asked by 16.10.2017 / 21:09
1
answer

Receiving jwt in Java functions

Hi, I have a java login function that validates username and password in a login request. If the login is successful it returns a jwt, I get this jwt and I keep it my front end and sending it to the back end of each request, how do I now to rece...
asked by 30.05.2017 / 14:11
0
answers

Authentication of API's using Node.js

I'm developing an API and a question about user authentication has come up. I currently use the Json Web Token (JWT) to perform authentication. In summary, when the user logs in to the tool, it receives a token generated by JWT and this token...
asked by 28.11.2018 / 14:04
1
answer

Route without token protection requesting token

I am trying to register a new user who is not on the middleware protected route token jwt, but I am getting the return. { "error": "The token could not be parsed from the request" } Following routes routes / api.php Route::group(['mid...
asked by 12.11.2018 / 16:02
1
answer

How can I get the JWT token after authenticating?

I have a Rest spring-boot API which, when a user authenticates the api returns the token jwt, I noticed in the browser that the token appears in the Response Header > Authentication and in the tests with the Postman it shows in the Body. H...
asked by 16.11.2018 / 15:58
0
answers

.NET Core - Generate Authentication Token for multiple APIS

I'm developing an application in .NET Core 2.1. The application will have multitenancy features. I'm building the project structure and will be: AuthServer API1 API2 API3 I want to generate a JWT token in the AuthServer and...
asked by 08.08.2018 / 01:50
1
answer

Redirect user without token

Talk to people, good morning, so I have a problem and I'm not sure how to solve it, (maybe it's the way I implemented it), well: I'm saving a user and his token every time I log in to my platform, if someone without a token tries to access a...
asked by 06.08.2018 / 14:47
0
answers

Check token localstorage with bank * Ionic 3 *

Hello friends, my doubts are kind of simple for many, but for me this is complicated. I wanted to do a check if the token that is stored in the localstorage is the same or if it exists in my database. I'm using Ionic 3, and using Wordpress wp-re...
asked by 26.07.2018 / 20:32
0
answers

Mocha + Chai do not access routes that need authentication

Talk to people, good afternoon. So, I'm doing some testing on my Node.js API using Mocha and chai, however I have a middleware that checks my user's token so he can get access to some HTTP requests. The login test works fine, but when I ha...
asked by 08.08.2018 / 22:08
0
answers

Use JWT to authenticate API requests using typescript

Speak, then I have a problem, I apologize if this problem has been solved before, but I did not find the solution; In my API I can create my token and made a middleware route for my API token When I test in Postman everything is fin...
asked by 20.07.2018 / 19:13