Questions tagged as 'jwt'

0
answers

Generating jwt manually using JAVA, but jwt.io does not validate

I'm trying to manually generate JWT in Java without using libs, but the returned JWT is not being validated by the link web application. public String authenticateUser(String body) { try { String key = "teste-de-chave-hahaha";...
asked by 15.10.2018 / 19:17
0
answers

How to configure the Slim 3 passthrough?

I'm trying to build a simple API for studying with Slim Framework and JWTAuthentication. In the case my path / auth returns a JSON containing the JWT token that will be used to access the other paths. But when trying to access the / auth JWTAuth...
asked by 31.08.2018 / 02:54
0
answers

JWT and Passport returns 401 React

Good afternoon. I am learning JWT and Passport and am experiencing problems with the same, the problem is this, I can login and save in LocalStorage, and redirect to another page however, even entering the correct data I get a 401 (Unautho...
asked by 29.08.2018 / 20:43
0
answers

Avoid route authentication late with JWT

JWT allows us through the unless method to inform URLs and request methods that should not require authentication. But as far as I know it is necessary to do this when the Middleware is informed to ExpressJS in the early stages of conf...
asked by 18.07.2018 / 06:10
1
answer

How to check JWT on each request

I am doing a login system in php and trying to authorize with JWT . I am not using any library, I made a class called Jwt that I pass the pars and it generates the Token and also passes the token and returns me an object with...
asked by 11.05.2018 / 18:23
1
answer

Error accessing route released with Spring boot

Good afternoon I have a problem in the release of routes for my application made with Spring boot. The problem is that the main route "/ home" requests the JWT token to access it, but it is configured to allow any kind of request from any user,...
asked by 13.06.2018 / 18:52
1
answer

How to change http header using () .get and () .post ()?

In a very brief way I need to send a jwt token in the http header of the requests, how can I change the headers of the jQuery requests $.post() and $.get() ? Example of how I do it using curl from the prompt: curl -H "Authoriza...
asked by 10.01.2018 / 20:46
1
answer

Error escaping a url in js express from a middleware

I have a problem escaping a Url validation of Token . I am using lib jwt (jsonwebtoken) to restrict the access to request of my api, however I want to leave url /imagem/:parametro without validation by token. Because today when I...
asked by 01.11.2018 / 20:59
1
answer

Laravel - Website and API Authentication [closed]

I am developing a Chat where it can be accessed both by the web and by an application, so I made a laravel project with an api, both the site and the application will be fed through the api that stays on the same server what I am in doubt is abo...
asked by 12.06.2018 / 21:27
1
answer

Sending JWT without Framework

What is the best way, in terms of good practices and practicality, to simplify the process of trafficking a JWT? I know that with Ionic or Angular, after configuring some module for JWT, the application starts to inject the token in all reque...
asked by 01.03.2018 / 21:44