Questions tagged [json-web-token]

JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties.

JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JavaScript Object Notation (JSON) object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or MACed and/or encrypted.

The suggested pronunciation of JWT is the same as the English word "jot".

Source

243 questions
-1
votes
1 answer

Error "Failed to decode JWT: Unsupported algorithm or incorrect key" when I'm trying to decode my token on JSONWebToken's Framework

I have the following code: if let user = response.result.value{ do { let claims: ClaimSet = try JWT.decode(user.access_token, algorithm: .hs256(self.jwtSecret.data(using: .utf8)!)) user.id = claims["sub"] as! Int user.iss =…
Alfredo Luco G
  • 876
  • 7
  • 18
-1
votes
1 answer

How do I add routes before jsonwebtoken?

I'm working with jsonwebtoken and Im not entirely sure how it works. I have normal sign in sign up routes that should go before the .verify function. Ive used jwt many times but never had tried using routes before it. Here is my routes files var…
Jonathan Corrin
  • 1,219
  • 4
  • 17
  • 42
-1
votes
1 answer

CAS in Rest API

I am building my own application based on an external CAS service. I would like to authenticate the user using the external CAS first then allow them to use my application. However, I am reading off the documentation on phpCAS but I am not sure how…
Han_Chen
  • 195
  • 2
  • 14
1 2 3
16
17