New implementation for API Keys that only stores hashed api keys, and the client key is base64 decoded json web token with the unhashed key, Closes #1440
This commit is contained in:
@@ -49,9 +49,10 @@ type GetApiKeysQuery struct {
|
||||
Result []*ApiKey
|
||||
}
|
||||
|
||||
type GetApiKeyByKeyQuery struct {
|
||||
Key string
|
||||
Result *ApiKey
|
||||
type GetApiKeyByNameQuery struct {
|
||||
KeyName string
|
||||
OrgId int64
|
||||
Result *ApiKey
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
|
||||
Reference in New Issue
Block a user