Skip to content
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

For MFA enabled Service Account, how to generate the MFA secret key #1006

Open
gayatrig808 opened this issue Oct 7, 2020 · 15 comments
Open
Labels

Comments

@gayatrig808
Copy link

Question

What is your question?
I am following the steps given in the ReadMe to generate MFA Secret Key for the service account, however I got struck at Step#3 Click on 'Additional security verification' as I am not able to see this 'Additional security verification' link to proceed. Please let me know how to proceed and it would be great help if anybody has done this recently and if they can share the steps.

@Shakevg
Copy link
Contributor

Shakevg commented Oct 8, 2020

@gayatrig808 Steps were outdated

Here is the list of actual steps:

  1. Go to your Office365 'Security info' page at https://mysignins.microsoft.com/security-info
  2. Enter your O365 login and password
  3. Click 'Add method' and select "Authenticator app" in Combobox, click Add
  4. Click on "I want to use a different authenticator app" link if you want to use
    not 'Microsoft Authenticator' authenticator app
  5. Click on the 'Next' button
  6. Click on the 'Next' button
  7. Click on 'Can't scan image?'
  8. Make a note of the 'Code' which is displayed
  9. Click the '+' to add an account and select 'work or school account'
  10. Scan the QR code displayed on the web page
  11. If the App displays a six-digit code, click 'Next' on the web page
  12. Enter the six-digit verification code from the app into the web page
  13. Click the 'Next' button
  14. Add your Code (MFA Secret) key with the spaces removed to your app.config as shown below, in the same section that you add your username and password

@fouquetm
Copy link

Hello,
In the Step 7
"7. Click on "I want to use a different authenticator app" link if you want to use not 'Microsoft Authenticator' authenticator app"

You MUST not use Microsoft Authenticator to get a Secret Key and use MFA authentication without notification !
It's not "if you want", it's "you must do not use" !

@birvag
Copy link

birvag commented Mar 4, 2021

Step 8: "Make a note of the 'Code' which is displayed".
-> I have completed till step 8, but not able to see + button mentioned in step 9.
Step 9: Click the '+' to add an account and select 'work or school account'

it only shows next button.
addbuttonnotvisible

Also how do we scan the QR code? when I open Authenticator app in mobile, it does not show any option to scan.

@Shakevg
Copy link
Contributor

Shakevg commented Mar 7, 2021

@birvag
Sorry, the steps are outdated now.
I updated the steps, which should be more clear now:

  1. Go to your Office365 'Security info' page at: https://mysignins.microsoft.com/security-info
  2. Enter your O365 login and password
  3. Click 'Add method' and select "Authenticator app" in Combobox, click Add
  4. Click on "I want to use a different authenticator app" link
  5. Click on the 'Next' button, click on the 'Next' button
  6. Click on 'Can't scan image?'
  7. Make a note of the 'Secret key' which is displayed
  8. Open Authenticator app and click the '+' to add an account and select 'work or school account'
  9. Scan the QR code displayed on the web page
  10. When the App displays a six-digit code, click 'Next' on the web page
  11. Enter the six-digit verification code from the app into the web page and Click the 'Next' button
  12. Add your MFA Secret key from step 7 with the spaces removed to your app.config as shown below, in the same section that you add your username and password

@samichebbi
Copy link

Hello,
I have the same issue described above .
I'm unable to see the option described in step 4 : (Click on "I want to use a different authenticator app" link)
Coud anybody help please .
Thanks

@Shakevg
Copy link
Contributor

Shakevg commented May 25, 2021

@samichebbi Could you show the screenshot of what do you see?

I see next:
image

@Alawode
Copy link

Alawode commented Mar 21, 2022

Hello, I'm facing this same issue currently and I'm not really able to follow these steps. Has there been any resolution for this issue? Seems that I am unable to sign in to https://mysignins.microsoft.com/security-info with the service account it keeps reverting back to my corp account

@Alawode
Copy link

Alawode commented Mar 23, 2022

@Shakevg please can you assist with this?

@Shakevg
Copy link
Contributor

Shakevg commented Mar 24, 2022

Alawode Can you try to login in incognito mode.
Is it reproduced for all accounts ot just some specific?

@Alawode
Copy link

Alawode commented Mar 24, 2022

@Shakevg Thanks for getting back to me. I have just been able to log into the mysignins account but when I try to go into the security info tab, it prompts for MFA asking to choose authentication options and I can't do this because MFA isn't enabled yet.

@Shakevg
Copy link
Contributor

Shakevg commented Mar 24, 2022

@Alawode please post the screen

@Alawode
Copy link

Alawode commented Mar 24, 2022

@Shakevg Here it is, please let me know if you can't view so that I'll re upload. Now I'm not even able to log in with seeing this
image

@Shakevg
Copy link
Contributor

Shakevg commented Mar 25, 2022

@Alawode Looks like that some MFA method already configured by default for your account. Try to ask IT to help.
Please post the screen of the page with existing MFA methods (where you click button to add new MFA method).

@Alawode
Copy link

Alawode commented Mar 29, 2022

@Shakevg thanks, I'll try asking IT. Unfortunately, I can't do that because I am required to sign in to view that page.

@NikitaShah24
Copy link

Hello Shakevg,
I tried the steps you showed us earlier and I got the secret key as well. But when I add it to my code in app.config and run, it keep asking me for authentication code from my phone.
Do you know what might be the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants