-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Two Factor API #49443
base: master
Are you sure you want to change the base?
feat: Two Factor API #49443
Conversation
Signed-off-by: SebastianKrupinski <[email protected]>
Signed-off-by: SebastianKrupinski <[email protected]>
Signed-off-by: SebastianKrupinski <[email protected]>
Signed-off-by: SebastianKrupinski <[email protected]>
* | ||
* @param list<string> $users collection of system user ids | ||
* | ||
* @return DataResponse<Http::STATUS_OK, list{string: list{string: bool}}, array{}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return DataResponse<Http::STATUS_OK, list{string: list{string: bool}}, array{}> | |
* @return DataResponse<Http::STATUS_OK, array<string, array<string, bool>>, array{}> |
$state = $this->tfRegistry->getProviderStates($userObject); | ||
return new DataResponse($state); | ||
} | ||
return new DataResponse([], Http::STATUS_NOT_FOUND); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return empty list is illegal 😿
return new DataResponse([], Http::STATUS_NOT_FOUND); | |
return new DataResponse(null, Http::STATUS_NOT_FOUND); |
* @param string $user system user identifier | ||
* @param list<string> $providers collection of TFA provider ids | ||
* | ||
* @return DataResponse<Http::STATUS_OK|Http::STATUS_NOT_FOUND, list{string: bool}, array{}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return DataResponse<Http::STATUS_OK|Http::STATUS_NOT_FOUND, list{string: bool}, array{}> | |
* @return DataResponse<Http::STATUS_O, array<string, bool>, array{}>|DataResponse<Http::STATUS_NOT_FOUND, null, array{}> |
Signed-off-by: SebastianKrupinski <[email protected]>
Ability to check/enable/disable configured 2FA with API endpoint
Request State
Request Disable
Request Enable