AXIAM PHP SDK

OpaqueEnrollment
in package

FinalYes

The `opaque` object CONTRACT.md ยง23 defines: a registration record and the server-issued session handle that identifies the exchange it came from.

The server cannot build this โ€” it never sees the plaintext โ€” so any request that sets a password has to carry it: POST /api/v1/users, /auth/password/change, /auth/reset/confirm and /admin/bootstrap.

Note what is not here. The SRP enrolment this replaces carried a salt, a group and a full set of KDF costs, and required the account's canonical username โ€” passing an email produced a verifier no login could ever satisfy, and renaming a user invalidated their verifier outright. A record binds to a credential identifier the server chooses, and the key-stretching parameters are the server's, so there is nothing here a caller can get wrong.

Table of Contents

Properties

$opaqueSession  : string
The handle `register/start` issued.
$registrationRecord  : string
The hex `RegistrationRecord`.

Methods

__construct()  : mixed
toWire()  : array{opaque_session: string, registration_record: string}
This enrolment as the array the password-setting endpoints accept as their `opaque` member.

Properties

$opaqueSession read-only

The handle `register/start` issued.

public string $opaqueSession

$registrationRecord read-only

The hex `RegistrationRecord`.

public string $registrationRecord

Methods

__construct()

public __construct(string $opaqueSession, string $registrationRecord) : mixed
Parameters
$opaqueSession : string
$registrationRecord : string

toWire()

This enrolment as the array the password-setting endpoints accept as their `opaque` member.

public toWire() : array{opaque_session: string, registration_record: string}
Return values
array{opaque_session: string, registration_record: string}
On this page

Search results