jwt-go Questions

6

Solved

I am currently working on a Go application. I receive a JWT token from the client side and I need to decode that token and obtain the relevant information: user, name, etc. I was checking the libra...
Unshaped asked 30/7, 2017 at 23:18

3

Solved

Im using dgrijalva/jwt-go & lestrrat-go/jwx. What im trying to achive is validate wso2 jwt using jwks. the token(expired token): const tokenStr = `eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6...
Triple asked 17/5, 2020 at 11:25

2

I have a /token endpoint that is working with a password grant. Because it's encoding a JWT token, it has high latency of about 1 second. Is there a way to make signing the JWT faster? I'm using Go...
Ditter asked 7/6, 2020 at 11:7

2

Solved

I'm using the dgrijalva/jwt-go/ package. I would like to extract the payload from the token, and I couldn't find a way to do it. Example (taken from : https://jwt.io/): for encoded: eyJhbGc...
Sharma asked 4/10, 2016 at 18:22

5

Solved

I am trying to pass in a token to the "Parse(token String, keyFunc Keyfunc)" GO routine defined in this GO-library (http://godoc.org/github.com/dgrijalva/jwt-go) for JWT-token parsing/validation. ...
Receptor asked 28/1, 2015 at 23:28

5

Solved

I am using "github.com/dgrijalva/jwt-go", and able to send a token to my frontend, and what I would like to know how I could retrieve the token sent from the frontend so that I can verify...
Sperling asked 15/9, 2016 at 18:43

7

Solved

How can I validate and get info from a JWT received from Amazon Cognito? I have setup Google authentication in Cognito, and set the redirect uri to to hit API Gateway, I then receive a code which ...
Consumerism asked 5/7, 2019 at 15:42

3

Solved

I have been searching for an example I can understand of how to validate the signature of a JWT with the Go Language. This might be especially tricky since I am using Okta, and it uses JWKs, so it ...
Rivulet asked 10/12, 2016 at 16:55

2

Solved

Could anyone tell me why the following (from https://github.com/dgrijalva/jwt-go) example doesn't work? token, err := jwt.Parse(myToken, func(token *jwt.Token) ([]byte, error) { return myLookupKe...
Berghoff asked 15/9, 2014 at 12:31

1

Solved

I'd like to parse the expiration date (exp) from a JSON Web Token (JWT) without verifying it. I've tried the following script (in an attempt to follow How to parse unix timestamp to time.Time): pa...
Welbie asked 17/10, 2019 at 22:36

4

Solved

I'm currently making an API (with go) and I'm working on the session part. After research about what to use for session, I found JWT really interesting. However I'm not really sure to understand h...
Endocardial asked 26/3, 2016 at 13:56

2

I have a public key from my identity provider -----BEGIN PUBLIC KEY----- THIS -----END PUBLIC KEY----- And a JWT token from my client. How do I check the token against the key? I'm having diff...
Anisotropic asked 14/8, 2018 at 5:25

1

Solved

I am using the jwt-go library in golang, and using the HS512 algorithm for signing the token. I want to make sure the token is valid and the example in the docs is like this: token, err := jwt.Par...
Titian asked 3/1, 2016 at 15:41
1

© 2022 - 2024 — McMap. All rights reserved.