question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MFA] enable/disable MFA from EUMAPI

See original GitHub issue

We 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:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
alrocarcommented, Nov 14, 2018

After talking with @javitonino we decided to go with option 2 since it has less implementation implications.

1reaction
alrocarcommented, Nov 12, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found