Class LinkFederatedIdentityRequest

Assembly: redb.Identity.Contracts.dll

H8 (DoD §4 gap (b)): self-service request to start a "link this provider to my
existing account" flow. Returns a redirect URL the front-end opens in a browser
window. The callback (sharing the same /federation/callback URI) interprets the
embedded encrypted state's LinkUserId and links instead of logging in.

public sealed class LinkFederatedIdentityRequest

Inheritance

Object→LinkFederatedIdentityRequest

Properties

ProviderId

Provider id to start the link flow for. Must match a registered provider.

public required string ProviderId { get; init; }

ReturnUrl

Optional return URL to redirect the user to after the link succeeds.

public string? ReturnUrl { get; init; }