Table of Contents

Interface IAuthorizationServerClient

Namespace
Keycloak.AuthServices.Authorization.AuthorizationServer
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 string
scope string
scopesValidationMode ScopesValidationMode?
cancellationToken CancellationToken

Returns

Task<bool>

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 string
scope string
cancellationToken CancellationToken

Returns

Task<bool>