Add nonce storage and replay prevention test (#293)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-24 13:22:10 -04:00
1 parent b9a14d25ac
commit ac4d9fa311
20 files changed
+317 -85

No files matched your search

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