Class MeChangeEmailController

Assembly: redb.Identity.Management.dll

N-4 (Session E, N4-7): self-service strict change-of-e-mail \u2014 initiate side.
POST /api/v1/identity/me/change-email/request issues a single-use
confirmation token and dispatches an e-mail to the requested new address.
The current address remains the canonical login until the user proves control of
the new one by clicking the confirm link. Requires Bearer authentication
(identity:manage or identity:account); the caller id is derived from
the access-token subject. The confirm half of the flow lives on
and is anonymous.
Feature-gated server-side by RedbIdentityOptions.ChangeEmail.Enabled
(default OFF) \u2014 when disabled the route is not registered and the controller
surface returns 404 for the in-process route lookup.

[Route("me/change-email")]
public class MeChangeEmailController : IdentityControllerBase

Inheritance

Object→RedbController→IdentityControllerBase→MeChangeEmailController

Inherited Members

Methods

Request(ChangeEmailRequestRequest)

Issue a fresh change-of-e-mail token bound to the user's current address and the

[HttpPost("request")]
public Task<object?> Request(ChangeEmailRequestRequest request)