Use scope-specific token DEKs (#342)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-14 12:30:11 -04:00
1 parent 67278af339
commit 6201357902
11 files changed
+366 -108

No files matched your search

+1 -1
View File
@@ -229,7 +229,7 @@ func wrapHandlerWithCommonFuncs(h http.Handler, c *Controller, props HandlerProp
DisableAuthzFailures: disableAuthzFailures,
}
requestInfo.PublicId, requestInfo.Token, requestInfo.TokenFormat = auth.GetTokenFromRequest(c.logger, c.kms, r)
requestInfo.PublicId, requestInfo.EncryptedToken, requestInfo.TokenFormat = auth.GetTokenFromRequest(c.logger, c.kms, r)
ctx = auth.NewVerifierContext(ctx, c.logger, c.IamRepoFn, c.AuthTokenRepoFn, c.ServersRepoFn, c.kms, requestInfo)
// Set the context back on the request