1
0
mirror of https://github.com/rancher/types.git synced 2025-09-03 14:14:32 +00:00

Revert "Token Hashing"

This commit is contained in:
Caleb Bron
2020-03-03 08:57:27 -07:00
committed by GitHub
parent 8eb69b5e3e
commit feb9eeb30f
3 changed files with 2 additions and 12 deletions

View File

@@ -9,8 +9,8 @@ import (
type Manager interface {
SetPrincipalOnCurrentUser(apiContext *types.APIContext, principal v3.Principal) (*v3.User, error)
GetUser(apiContext *types.APIContext) string
EnsureToken(tokenName, description, kind, userName string, ttl *int64) (string, error)
EnsureClusterToken(clusterName, tokenName, description, kind, userName string, ttl *int64) (string, error)
EnsureToken(tokenName, description, kind, userName string) (string, error)
EnsureClusterToken(clusterName, tokenName, description, kind, userName string) (string, error)
EnsureUser(principalName, displayName string) (*v3.User, error)
CheckAccess(accessMode string, allowedPrincipalIDs []string, userPrincipalID string, groups []v3.Principal) (bool, error)
SetPrincipalOnCurrentUserByUserID(userID string, principal v3.Principal) (*v3.User, error)