Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
CheckToken checks if a token is valid using the `github.com/dgrijalva/jwt-go` package. It also additionally decodes the claims section into plain JSON.
func CheckTokenJWKS ¶
CheckTokenJWKS checks if a token is valid using `github.com/square/go-jose`. It also additionally decodes the claims section into plain JSON.
func CheckTokenManual ¶
CheckTokenManual manually checks if a JWT token is valid by computing the signature from header and claims sections and confirming that this signature matches the signature section. This assumes token is HS256
func GetTokenBody ¶
GetTokenBody to obtain JWT token that's a signed version of request body X-Alg header has the algorithm used
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.