Questions tagged as 'jwt'

0
answers

Authentication with JWT Auth and dingo API Laravel 5.4

I did an authentication with the default user model of Laravel 5.4, but now, I did the same implementation, only with a custom model, and it's not working. I get this error "message": "Undefined index: password" . Model: <?php na...
asked by 03.08.2017 / 16:11
0
answers

Laravel with JWT does not authenticate by header

I'm using Laravel 5.3 together with JWT , but when I send authentication through the header it returns me that I am not authenticated and I get the token by parameter it shows me the result, follow my .htaccess RedirectMatch 404 /\.g...
asked by 27.12.2016 / 12:18
1
answer

Error with angle intercerptors

I'm trying to implement an authentication system with Angular + json web token, but how much do I try to make a $http.interceptors.push('nomeDo Interceptor') show error in the application and in the browser console does not show any error...
asked by 19.10.2016 / 09:21
1
answer

Using JWT with Laravel

I'm using JWT to generate TOKEN access to my system ... So far it's okay, I'm getting my API and it returns me a Token. The problem is in the following scenario. - My intention is to work with API in my Web application and would reuse this sa...
asked by 22.03.2017 / 01:53
0
answers

How to capture the authorization of the headers to get the token using httpclient (angular 6)

My question is as follows, I'm using httpclient, and I need to get the jwt token, but it's coming in header no authorization (as it shows in the image), I'm not able to get this token because it's not coming in payload, and yes in the header. Is...
asked by 28.12.2018 / 19:33
1
answer

Laravel jwt token

I'm using tymondesigns / jwt-auth to generate token It's working The problem is that I want to change the validity time of the token to 1 minute for testing I changed the jwt.php file: 'ttl' = > env ('JWT_TTL', 1), and I also tried: 'ttl'...
asked by 15.11.2018 / 15:20
1
answer

Prohibit direct access to a URL (JS) [duplicate]

I made a website, and in it I need to prevent it from entering it by URL access, but I did not create a session in PHP because the login is validated with token by jwt with js. Is there any secure way to just let anyone who logged in to the...
asked by 22.05.2018 / 19:49