Skip to main content

Module otp

Module otp 

Source
Expand description

OTP management endpoints for the admin API.

RHELBU-3536 R9: Administrators generate OTPs for EST enrollment via the admin API. Each OTP is bound to an entity-id and has configurable expiry and usage limits.

Structs§

GenerateOtpRequest
Request body for POST /admin/otp/generate.
OtpResponse
Response for a successfully generated OTP.
OtpSummary
OTP summary for listing.

Functions§

generate_otp
POST /admin/otp/generate — Generate a new OTP.
list_otps
GET /admin/otp — List active OTPs.
revoke_otp
DELETE /admin/otp/{id} — Revoke an OTP.