Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBoBCUP committed Nov 18, 2020
1 parent 8204a11 commit e86c5d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func checkInternalClaim(claims []struct { Claim string
Value string}, key string, value string) bool {

for _, val := range claims {
fmt.Println(val.Claim)
fmt.Println(val.Value)
// fmt.Println(val.Claim)
// fmt.Println(val.Value)

if val.Claim == key {
if val.Value == value {
Expand Down
2 changes: 1 addition & 1 deletion token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)


var token string = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImtnMkxZczJUMENUaklmajRydDZKSXluZW4zOCIsImtpZCI6ImtnMkxZczJUMENUaklmajRydDZKSXluZW4zOCJ9.eyJhdWQiOiJhcGk6Ly9iODAxNmRlYS04M2ZkLTQzNjktYjAxZi1lYzk5NDU5YTg3ZTciLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83N2UxY2U3ZS1jZDhjLTQxZjQtYjAyYS0yZTgxOWVkNzgwNjQvIiwiaWF0IjoxNjA1NTgwMzM5LCJuYmYiOjE2MDU1ODAzMzksImV4cCI6MTYwNTU4NDIzOSwiYWNyIjoiMSIsImFpbyI6IkUyUmdZTmoyM0pieFZaUm01c245U2haclhSdkRPUE82ekdPNHY1dktKSjdjV3M2WmNma1pvNWJ5NnBqdUdSUDdiTjI4QXFJa0FRPT0iLCJhbXIiOlsicHdkIl0sImFwcGlkIjoiZjQ1MGQwNTEtMzZiMS00ZmM1LWI5ZjUtYjk2MjJmNjU5MzdjIiwiYXBwaWRhY3IiOiIwIiwiaXBhZGRyIjoiMTIyLjU2LjEwNC4xMTQiLCJuYW1lIjoiQWxleCBEZW1vIEFjY291bnQiLCJvaWQiOiI4MTRiYWExOC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dXvx8g80EfO9C-6k68syRLlCR2gbXZdjQRRmffirpcxSo9KfTMK76uPkVbu_glNaj69eIyMcXKPs8WtebIqvTS3erW9_SngZ9kSw"
var audience string = "api://b8016dea-83fd-4369-b01f-ec99459a87e7"

func TestNew(t *testing.T) {
Expand Down

0 comments on commit e86c5d0

Please sign in to comment.