Interface IAuthorizationServerClient
- Assembly
- Keycloak.AuthServices.Authorization.dll
Keycloak AuthorizationServer API
public interface IAuthorizationServerClient
Methods
VerifyAccessToResource(string, string, ScopesValidationMode?, CancellationToken)
Verifies access to the protected resource. Sends decision request to token endpoint {resource}#{scope}
Task<bool> VerifyAccessToResource(string resource, string scope, ScopesValidationMode? scopesValidationMode = null, CancellationToken cancellationToken = default)
Parameters
resource
stringscope
stringscopesValidationMode
ScopesValidationMode?cancellationToken
CancellationToken
Returns
VerifyAccessToResource(string, string, CancellationToken)
Verifies access to the protected resource. Sends decision request to token endpoint {resource}#{scope}
Task<bool> VerifyAccessToResource(string resource, string scope, CancellationToken cancellationToken = default)
Parameters
resource
stringscope
stringcancellationToken
CancellationToken