Tie together the database-driven session handling with the worker and add relevant CLI comands (#370)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-19 00:18:17 -04:00
1 parent fd8ceb6cc4
commit 07a7e9750a
57 files changed
+2548 -826

No files matched your search

+5 -3
View File
@@ -63,9 +63,10 @@ type RequestInfo struct {
}
type VerifyResults struct {
UserId string
Error error
Scope *scopes.ScopeInfo
UserId string
AuthTokenId string
Error error
Scope *scopes.ScopeInfo
}
type verifier struct {
@@ -160,6 +161,7 @@ func Verify(ctx context.Context, opt ...Option) (ret VerifyResults) {
v.logger.Error("error performing authn/authz check", "error", err)
return
}
ret.AuthTokenId = v.requestInfo.PublicId
if !authResults.Allowed {
if v.requestInfo.DisableAuthzFailures {
ret.Error = nil