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:
Torkel Ödegaard
2015-02-26 17:23:28 +01:00
parent 6a2a6afc1d
commit c75aa23092
12 changed files with 170 additions and 70 deletions
+4 -3
View File
@@ -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
}
// ------------------------