Skip to content

chjarocki/jwtserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Receptor & Generator

We are using PyJWT for JWT generation, encoding, decoding, and handling. We send request JWT to SSSC's ADFS server.

Breakdown of JWT:

Can be done visually on -> jwt.io.

Header:

{
  'x5t': 'vxAKeI6ewGAIDTycUXnW3UnPNiE=',
  'typ': 'JWT',
  'alg': 'RS256'
}
  • x5t: is a base64 encoded fingerprint of the client's certificate
  • typ: The type of token
  • alg: The encryption algorithm used

Body:

  'aud': 'URL',
  'sub': 'SUB',
  'iss': 'ISSUER',
  'iat': IAT,
  'jti': 'JTI',
  'client_id': 'URL',
  'exp': 1637611223
}
  • aud: Audience
  • sub: Subject
  • iss: Issuer
  • iat: Token generation time in seconds since epoch
  • jti: Random uuid
  • client_id: The service you want a token for
  • exp: Token expiration time in seconds since epoch

Run this project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.7%
  • Dockerfile 25.4%
  • Shell 11.9%