Questions tagged as 'jwt'

0
answers

Error in AuthenticationManager spring security JWT

I have a problem several days ago, I am trying to implement Spring Security, but it gives me an authentication error, I made a debug and I find that the exception is in the AuthenticationManager in the class that I detail below tog...
asked by 12.06.2018 / 14:29
1
answer

How to handle the cookie of my jwt?

I have an api with jwt that gives me a token of authorization to be able to navigate in the application that consumes the api, this token has an expiration date and it is here my question. How can I handle this from my client appli...
asked by 12.06.2018 / 00:17
1
answer

Undefined variable in login with JWT

I'm doing a login with laravel 5 and Json Web Token (JWT), and when I try to try it I get the following error    ErrorException in JwtAuth.php line 72: Undefined variable: decoded My helper JwtAuth public function checkToken($jwt, $getI...
asked by 28.05.2018 / 03:10
1
answer

ASP.NET MVC 5 help with JWT logging

I am developing a web application which consumes the data from a API , this at the time of login returns me a token . This token must be used in the other internal consultations of the application since it must be sent in each req...
asked by 09.05.2018 / 15:31
0
answers

Verify token expiration in servlet

First time I'm in the tokens, I'm using jwt in java. I manage to generate the token without problems, I send it as a parameter to a servlet through a url and I show it. What is not done, is how I should verify that the token has not expired....
asked by 01.05.2018 / 18:42
0
answers

Error validating Token

I have this class called ValidateToken, but I can not find the error because in the compilation everything is fine but when executing (in debug mode) the class sends me a message    Invalid syntax on line 1. public bool validateToken(s...
asked by 06.02.2018 / 17:09
1
answer

JWT for the web cookie?

Good guys. I am creating an application, where the login is made in a service for both api and the web. For the api there is no problem because it is sent in the header, but I do not understand how I use it on the web. If I make a request...
asked by 13.11.2017 / 19:08
0
answers

How to use the user ID logged in angular2 and JWT?

I have this code in my service which is linked to a query on the server , the query uses a ID relative, this ID would be that of the logged-in user, but I do not know how to call the service and be able to use it. import { Injec...
asked by 05.06.2017 / 18:26
0
answers

How to use this token to validate the start of the session, AngularJS?

I am currently controlling the login with a WebService in laravel using the following library: JWTAuth Here is the method in laravel: public function userAuth(Request $request) { $usuario = $request->input('usuario'); $pa...
asked by 09.04.2017 / 08:22
1
answer

I can not access process.env nodejs

I am starting to program in node, and as part of my tasks I have to program an app with token authentication. But I am stuck in the part where it generates it, because if I pass the direct text in the "key" field of the jwt-simple if it gener...
asked by 28.01.2017 / 01:02