The auth/identity/roles endpoint surface. Routes verified from the controllers 2026-07-20. All controllers carry class-level [Authorize] except the anonymous auth entry points (login/SSO/token, which mint the session).

Base: core-backend-service API. Bodies are application/json.


IdentityController — [Identity] (login / token)

Method Route Body Purpose
POST Identity/Authenticate AuthenticationRequest { username, password } Standard login → AuthenticationResponse { access_token, refresh_token, status, context }.
POST Identity/Control/Authenticate AuthenticationRequest Internal control-panel login.
POST Identity/OAuth/Authenticate OAuthAuthenticationRequest OAuth (Google/Microsoft).
POST Identity/Sso/Authenticate SsoAuthenticationRequest SSO.

Login outcomes (status): Success, Failed, TwoFactorRequired, TwoFactorSetupRequired, PasswordResetRequired, LockedOut, NotAllowed.

AccountController — [Account] (2FA, password, sessions)

2FA — user track

Method Route Purpose
GET Account/2fa/Details Current 2FA state.
GET Account/2fa/Setup_Info QR / secret to enrol.
POST Account/2fa/Enable Confirm a code → turn on.
POST Account/2fa/Disable Turn off.
POST Account/2fa/SendCode Send/refresh a code.
POST Account/2fa/VerifyCode Verify at login.

2FA — admin track

Method Route Purpose
GET Account/2fa/Admin_Setup_Info Admin enrol info.
POST Account/2fa/Enable_Admin Enable (admin).
POST Account/2fa/VerifyAdminCode Verify (admin).
POST Account/Control/2fa/SendCode · Account/Control/2fa/VerifyCode Control-panel 2FA.

Password & email lifecycle

Method Route Purpose
POST Account/ForgotPassword Start forgot-password.
POST Account/SendPasswordResetEmail Send reset link.
POST Account/ResetPassword Reset with token.
POST Account/CompletePasswordReset Finalise reset.
POST Account/SetPassword · Account/CreatePassword Set initial password.
POST Account/ResendConfirmationEmail Resend email confirm.
GET Account/ConfirmEmail Confirm email (link target).
GET Account/View/SetPassword · View/ResetPassword · View/Register Server-rendered link landing pages.

Sessions & misc

Method Route Purpose
POST Account/Logout End session.
GET Account/CheckSession · Control/CheckSession Session still valid?
POST Account/VerifyToken Validate a token.
GET Account/GetUserSession · GetCompanySession · Control/GetUserSession Session/context read.
GET Account/GetCompanySetupInfo · GetCompanyWalletId Company bootstrap info.
POST Account/Create · Save_Referral Account create / referral.

MembershipController — [Membership]

Method Route Purpose
GET Membership/User/ByEmail/{email} Look up user by email.
GET Membership/User/ByPersonKey/{personKey} Look up user by person key.
GET Membership/User/Role/List User's role list.

Admin/RolesController — [Admin/Roles] (roles & permissions admin)

Read

Method Route Purpose
GET Admin/Roles/View/New · View/Edit Form bootstrap data.
GET Admin/Roles/Select_Roles List roles.
GET Admin/Roles/Select_Role_Details One role's detail.
GET Admin/Roles/Select_Permissions The permission catalog.
GET Admin/Roles/Select_Role_Permissions Permissions on a role.
GET Admin/Roles/Check Duplicate-name check.