[MFA] enable/disable MFA from EUMAPI
See original GitHub issueWe are adding support for creating/removing/reseting MFA from EUMAPI
Proposal:
Create user with MFA
Request body
{
"username": "org-user",
"viewer": true,
"org_admin": false,
"email": "org-user@sample-org.com",
"password": "secret!",
"api_key": "1a9eda3a51e43f8aa52e1fbcb949aaddee3b1d9f",
"multifactor_auths": [{ "type": "totp" }]
}
MFA is created with enabled = false
any other attributes are ignored. Using an array in case we support more types in the future.
Update user and create MFA
Request body
{
"username": "org-user",
"viewer": true,
"org_admin": false,
"email": "org-user@sample-org.com",
"password": "secret!",
"api_key": "1a9eda3a51e43f8aa52e1fbcb949aaddee3b1d9f",
"multifactor_auths": [{ "type": "totp" }]
}
MFA is created with enabled = false
any other attributes are ignored.
Show user
Response contains the available MFAs for the user and the status
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"username": "org-user",
"email":"org-user@sample-org.com",
"avatar_url":"//example.com/avatars/avatar_stars_blue.png",
"base_url":"http://sample-org.carto.com/u/org-user",
"quota_in_bytes":104857600,
"db_size_in_bytes":0,
"table_count":0,
"public_visualization_count":0,
"all_visualization_count":0,
"viewer":false,
"org_admin":false,
"multifactor_auths": [{ "type": "totp", "enabled": false }]
}
Reset MFA
A specific action for a user that resets all the available MFAs.
<org>.carto.com/u/<org_owner>/api/v2/organization/<org>/users/org-user/reset_multifactor_auths
EDIT: Forgot how to disable MFA
Disable MFA
A specific action for a user that disables all the available MFAs.
<org>.carto.com/u/<org_owner>/api/v2/organization/<org>/users/org-user/disable_multifactor_auths
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
How to disable/enable MFA(Multi factor authentication) for the ...
How to disable /enable MFA(Multi factor authentication) for the account in the Office 365 admin center ... Step 2: On the left pane,...
Read more >Set up multifactor authentication for users - Microsoft 365 admin
Go to the Azure Active Directory - Properties page. At the bottom of the page, choose Manage Security defaults. Choose Yes to enable...
Read more >Disable Multi-Factor Authentication - Transend
Disable MFA in Microsoft Azure AD · Open the Microsoft 365 Admin Center · In the left side navigation, click Azure Active Directory...
Read more >Set up multi-factor authentication for Office 365 users
Go to the · Go to Users > Active users. · Choose More > Setup Azure multi-factor auth. · Find the people for...
Read more >The many ways to implement multi-factor authentication (MF...
How to enable per-user MFA · 1. Go to Microsoft 365 admin center > Active users > Multi-factor authentication. Microsoft 365 Per-User MFA...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After talking with @javitonino we decided to go with option 2 since it has less implementation implications.
Thoughts? ^^ @javitonino @gonzaloriestra