Package com.netflix.spinnaker.security
Interface AuthenticatedRequest.PrincipalExtractor
- Enclosing class:
- AuthenticatedRequest
public static interface AuthenticatedRequest.PrincipalExtractor
Determines the current user principal and how to interpret that principal to extract user
identity and allowed accounts.
-
Method Summary
Modifier and TypeMethodDescriptiongetSpinnakerAccounts(Object principal) getSpinnakerUser(Object principal) default Object
-
Method Details
-
principal
- Returns:
- the user principal in the current security scope.
-
getSpinnakerAccounts
- Returns:
- The comma separated list of accounts for the current principal.
-
getSpinnakerAccounts
- Parameters:
principal- the principal to inspect for accounts- Returns:
- the comma separated list of accounts for the provided principal.
-
getSpinnakerUser
- Returns:
- the user id of the current user
-
getSpinnakerUser
- Parameters:
principal- the principal from which to extract the userid- Returns:
- the user id of the provided principal
-