Class GrantMyConsentRequest

Assembly: redb.Identity.Contracts.dll

Self-service consent grant request for POST /me/consents. The caller's
user id is taken from the access-token subject — it is never accepted from the
request body. must be the exact set the user is approving
for the given client; the underlying ConsentService.GrantAsync performs a
union with any pre-existing valid permanent grant.

public sealed class GrantMyConsentRequest

Inheritance

Object→GrantMyConsentRequest

Properties

ClientId

OAuth client_id of the application receiving consent.

[Required]
public required string ClientId { get; set; }

Scopes

Scope identifiers (e.g. openid, profile, email).

[Required]
public required string[] Scopes { get; set; }