Skip to content

Check TOTP status in manager POST_AUTHORIZE hook #4324

Closed
@fregataa

Description

@fregataa

To check the user's TOTP key registration status and enforce 2FA settings, you should implement this in the POST_AUTHORIZE hook handler of the manager. If a TOTP key is not registered and the force-2FA option is activated, the handler should return the token value in a bad request response.

(Note: It is challenging to allow the hook handler to return a redirect response (3xx) instead of a 400 error.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions