1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

Add changes for auth refresh

This commit is contained in:
Max Korp
2018-12-03 09:33:52 -07:00
committed by Craig Jellick
parent c0e0d4dd2b
commit c50d24d4b9
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ type Manager interface {
GetUser(apiContext *types.APIContext) string
EnsureToken(tokenName, description, userName string) (string, error)
EnsureUser(principalName, displayName string) (*v3.User, error)
CheckAccess(accessMode string, allowedPrincipalIDs []string, user v3.Principal, groups []v3.Principal) (bool, error)
CheckAccess(accessMode string, allowedPrincipalIDs []string, userPrincipalID string, groups []v3.Principal) (bool, error)
SetPrincipalOnCurrentUserByUserID(userID string, principal v3.Principal) (*v3.User, error)
CreateNewUserClusterRoleBinding(userName string, userUID apitypes.UID) error
}