Table of Contents

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

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

string

DecisionStrategy

Gets or sets the decision strategy of the policy.

public DecisionStrategy DecisionStrategy { get; init; }

Property Value

DecisionStrategy

Description

Gets or sets the description of the policy.

public string? Description { get; init; }

Property Value

string

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

string

Logic

Gets or sets the logic of the policy.

public string? Logic { get; init; }

Property Value

string

Name

Gets or sets the name of the policy.

public string? Name { get; init; }

Property Value

string

Owner

Gets or sets the owner of the policy.

public string? Owner { get; init; }

Property Value

string

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; }

Property Value

string