mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: add debug output
This commit is contained in:
parent
4caf05c9eb
commit
73398f0c7e
@ -16,10 +16,10 @@ func DefaultKeyFunc(key Key, deprecatedKeys map[string]Key) jwt.Keyfunc {
|
||||
return nil, errors.New("invalid key identifier type")
|
||||
} else if oldKey, ok := deprecatedKeys[kidString]; ok {
|
||||
return oldKey.public, nil
|
||||
} else if kid == key.id {
|
||||
} else if kidString == key.id {
|
||||
return key.public, nil
|
||||
} else {
|
||||
return nil, errors.New("unknown key identifier: " + kidString)
|
||||
return nil, errors.New("unknown key identifier: " + kidString + " (" + key.id + ")")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user