Update misleading Authenticated bool with new name and explanation. (#1111)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-04-13 17:55:40 -04:00
1 parent f8f66abcf4
commit 412018fbb4
11 files changed
+39 -19

No files matched your search

@@ -133,7 +133,7 @@ func (s Service) ListAuthMethods(ctx context.Context, req *pbs.ListAuthMethodsRe
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -66,7 +66,7 @@ func (s Service) ListAuthTokens(ctx context.Context, req *pbs.ListAuthTokensRequ
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -80,7 +80,7 @@ func (s Service) ListGroups(ctx context.Context, req *pbs.ListGroupsRequest) (*p
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -116,7 +116,7 @@ func (s Service) ListHostCatalogs(ctx context.Context, req *pbs.ListHostCatalogs
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -83,7 +83,7 @@ func (s Service) ListRoles(ctx context.Context, req *pbs.ListRolesRequest) (*pbs
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -139,7 +139,7 @@ func (s Service) ListScopes(ctx context.Context, req *pbs.ListScopesRequest) (*p
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -105,7 +105,7 @@ func (s Service) ListSessions(ctx context.Context, req *pbs.ListSessionsRequest)
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -127,7 +127,7 @@ func (s Service) ListTargets(ctx context.Context, req *pbs.ListTargetsRequest) (
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}
@@ -81,7 +81,7 @@ func (s Service) ListUsers(ctx context.Context, req *pbs.ListUsersRequest) (*pbs
// may have authorization on downstream scopes.
if authResults.Error == handlers.ForbiddenError() &&
req.GetRecursive() &&
authResults.Authenticated {
authResults.AuthenticationFinished {
} else {
return nil, authResults.Error
}