diff options
author | Mike Crute <mike@crute.us> | 2021-11-24 10:56:43 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-11-24 10:56:43 -0800 |
commit | bb96127a71d3d22825a35ffc6b6c8bea0590f202 (patch) | |
tree | 65f2c31b618ff913e08bc2d8fea7f896a01323d2 /app/controllers/api_user.go | |
parent | ff05652956161dd94aa109e2c5d40bd82d4cfd5d (diff) | |
download | cloud-identity-broker-bb96127a71d3d22825a35ffc6b6c8bea0590f202.tar.bz2 cloud-identity-broker-bb96127a71d3d22825a35ffc6b6c8bea0590f202.tar.xz cloud-identity-broker-bb96127a71d3d22825a35ffc6b6c8bea0590f202.zip |
Use x/oauth2 instead of custom token
Diffstat (limited to 'app/controllers/api_user.go')
-rw-r--r-- | app/controllers/api_user.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/api_user.go b/app/controllers/api_user.go index f265f26..e55d88d 100644 --- a/app/controllers/api_user.go +++ b/app/controllers/api_user.go | |||
@@ -82,15 +82,6 @@ func validateKeysAndTokens(in *models.User) error { | |||
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||
85 | for k, v := range in.AuthTokens { | ||
86 | if k != v.Kind { | ||
87 | return &echo.HTTPError{ | ||
88 | Code: http.StatusBadRequest, | ||
89 | Message: "Token kind must match hash key.", | ||
90 | } | ||
91 | } | ||
92 | } | ||
93 | |||
94 | return nil | 85 | return nil |
95 | } | 86 | } |
96 | 87 | ||