Class Policy
- Namespace
- Keycloak.AuthServices.Sdk.Protection.Models
- Assembly
- Keycloak.AuthServices.Sdk.dll
Represents a policy used for service protection.
public class Policy
- Inheritance
-
Policy
- Inherited Members
Remarks
See https://www.keycloak.org/docs/latest/authorization_services/index.html#_service_protection_api for details.
Properties
Clients
Gets or sets the clients associated with the policy.
public string[]? Clients { get; init; }
Property Value
- string[]
Condition
Gets or sets the condition of the policy.
public string? Condition { get; init; }
Property Value
DecisionStrategy
Gets or sets the decision strategy of the policy.
public DecisionStrategy DecisionStrategy { get; init; }
Property Value
Description
Gets or sets the description of the policy.
public string? Description { get; init; }
Property Value
Groups
Gets or sets the groups associated with the policy.
public string[]? Groups { get; set; }
Property Value
- string[]
Id
Gets or sets the ID of the policy.
public string? Id { get; init; }
Property Value
Logic
Gets or sets the logic of the policy.
public string? Logic { get; init; }
Property Value
Name
Gets or sets the name of the policy.
public string? Name { get; init; }
Property Value
Owner
Gets or sets the owner of the policy.
public string? Owner { get; init; }
Property Value
Roles
Gets or sets the roles associated with the policy.
public string[]? Roles { get; init; }
Property Value
- string[]
Scopes
Gets or sets the scopes associated with the policy.
public string[]? Scopes { get; init; }
Property Value
- string[]
Type
Gets or sets the type of the policy.
public string? Type { get; init; }