cURL
curl --request POST \ --url https://auth.platform.arb.inc/sessions/attach-roles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "totpPasscode": "123456" } '
Attaches user roles to the current session for authorization by validating a TOTP passcode. Roles remain attached until the session expires.
access token
Time-based one-time password for verification
"123456"
Session roles successfully enabled