Questions tagged [JSON Web Token] (95)

1
answer

Why can't I login with spring rest jwt?

Can't log in, although registration is no problem. Was googling and someone wrote that the problem is that password which didn't come keshirovaniya, try ksirova is still not out. Don't understand what the problem is. Crashes and exception error 401 mainly here: authentication = authenticationManager.authenticate( new Usern...
jayson9 asked April 18th 20 at 13:37
1
answer

How best to update the JWT token in the app on the Vue?

Hi, now I have yet to use jwt as it should. Before that I used a single token without expiration in test applications. The Api provides three routes for token: create, verify and refresh. Task: before request token, to verify the validity of the token, and refresh it if necessary. Technically simple and quick to sugardadd...
Keely asked April 18th 20 at 13:12
2
answers

Why am I not receiving payload?

It seems to have done everything in the instructions, but I can't login. Trying to Vijesti payload to see why does not find the user, but receives the results only from passport.authenticate('jwt'), and from the strategy itself does not output anything. Get a normal token. Then using postman I send it but get the error: "us...
rahsaan.Botsford24 asked April 18th 20 at 12:29
0
answer

How to pass data from backend to frontend?

I'm doing authorization Passport.js - JWT. I myself am a noob and just started to learn the backend. Write authorization on the server side I could. How to transfer a ready token to the user, and then save it in the local store and make a redirect to your personal account. I don't know how to do. May I complicate matters an...
0
answer

The test for authorization in vuejs?

Hello, I wrote code like this: router.beforeEach((to, from, next) => { if (to.matched.some(record => record.meta.requiresAuth)) { if (Store.getters.isLoggedIn) { next() return } next({ name: 'Feed' }) } else if (to.matched.some(record => record.meta.guest)) { if (localStorage.getItem('access_token') == null) {...
julianne.Leffler asked April 9th 20 at 10:38
0
answer

How to renew access token for any request using the refresh token?

In General, faced with such a task, but not strong in bake, so please help. So I have a client stored both on the token return them when you login, box in the store. Every request I'm sending in a header access token In the database I store the refresh token. Eventually I send a request, read access, then create a new a...
martin asked April 9th 20 at 09:43
2
answers

Several sessions in the sql database jwt?

Make the functionality of user authorization. There is only one user, but authorizations for this user can be several different devices. Am I right in the decision to create a separate table for jwt tokens? That is, when each query to the server will be searched in this table, token, and if found, then access is allowed.
Adrian_Greenfeld asked April 9th 20 at 09:31
2
answers

Antifolate SSO with AD using javascript?

I have a url with parameters: locationHREF const : string = `${authEndpoint}?scope=${scope}&response_type=${response_type}&client_id=${client_id}&redirect_uri=${redirect_uri}`; In the code I do a redirect to the SSO on the server where the request nickname and password, after albecause back to your aplikeyshen w...
Terrell asked April 8th 20 at 10:10
2
answers

Laravel+Vue+jwt auth: Authorization, registration — what to do?

Hello , Hello tell me how to implement authorization and user registration in Laravel using Vue + jwt ? the entire Internet went around never able to find , can be bad looking , maybe in fact that I'm weak and just started this stack for 4 days sitting mucus nothing happens thanks in advance
Eryn14 asked April 8th 20 at 09:16
2
answers

React, nodejs, jwt — how to do authentication and authorization with refresh token?

Colleagues good day The issue is certainly not new, but still, tell me who did the implementation of the case, the first time faced with the rest globally. Implementation of authorization, authentication and replacement of the token after the time! Thank you in advance
evelyn_Huels asked April 8th 20 at 03:03