Functions -
auth
checkForScopeMatch | Check whether the scopes of the user and scopes of resource matches. |
extractUsernameAndPassword | Extracts the username and password from the credential values. |
prepareError | Log and prepare |
setAuthenticationContext | Set the authentication context values to invocation context. |
setPrincipal | Set the principal values to invocation context. |
checkForScopeMatch
(string[] | string[] resourceScopes, string[] userScopes, string authzCacheKey, Cache? positiveAuthzCache, Cache? negativeAuthzCache)
returns booleanCheck whether the scopes of the user and scopes of resource matches.
Parameters
- userScopes string[]
-
Scopes of user
- authzCacheKey string
-
Authorization cache key
- positiveAuthzCache Cache?
-
The cache for positive authorizations
- negativeAuthzCache Cache?
-
The cache for negative authorizations
-
Return Type
(boolean) true if there is a match between resource and user scopes, else false
Extracts the username and password from the credential values.
Parameters
- credential string
-
The credential values.
Log and prepare error
as a Error
.
-
Return Type
(Error) Prepared
Error
instance
Set the authentication context values to invocation context.