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

Unable to autheticate after MFA #1536

Open
Jpeezzee opened this issue Jan 28, 2025 · 2 comments
Open

Unable to autheticate after MFA #1536

Jpeezzee opened this issue Jan 28, 2025 · 2 comments
Assignees
Labels
public-reported This issue is reported by the public users of the tool.

Comments

@Jpeezzee
Copy link

🐛 Summary

Good Day Team, Currently experiencing a issue on using the ScubaGear tool. I have been granted global reader on our O365 tenant and have cross checked the version of Powershell and the correct module has been used.

PS C:\WINDOWS\system32> ($PSVersionTable).PsVersion

Major Minor Build Revision


5 1 22621 4391

PS C:\WINDOWS\system32> (Get-Module -ListAvailable -Name Microsoft.Online.SharePoint.PowerShell).Version

Major Minor Build Revision


16 0 24810 12000

I receive the prompt to authenticate and authenticate with MFA i get the error on multiple checks on the platform. I have followed all the dependencies and still get the same errors as per below.

WARNING: aad will be omitted from the output because of failed authentication Connect-Tenant : Error establishing a connection with defender. InteractiveBrowserCredential authentication failed: User canceled authentication. At C:\Program Files\WindowsPowerShell\Modules\ScubaGear\1.4.0\Modules\Orchestrator.psm1:1463 char:26 + $AnyFailedAuth = Connect-Tenant @ConnectTenantParams + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-Tenant WARNING: defender will be omitted from the output because of failed authentication Connect-Tenant : Error establishing a connection with sharepoint. Could not connect to SharePoint Online. At C:\Program Files\WindowsPowerShell\Modules\ScubaGear\1.4.0\Modules\Orchestrator.psm1:1463 char:26 + $AnyFailedAuth = Connect-Tenant @ConnectTenantParams + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-Tenant WARNING: sharepoint will be omitted from the output because of failed authentication Connect-Tenant : Error establishing a connection with teams. One or more errors occurred. At C:\Program Files\WindowsPowerShell\Modules\ScubaGear\1.4.0\Modules\Orchestrator.psm1:1463 char:26 + $AnyFailedAuth = Connect-Tenant @ConnectTenantParams + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-Tenant WARNING: teams will be omitted from the output because of failed authentication

To reproduce

Steps to reproduce the behavior:

I have clear the tokens multiple times before attempting and have run the initializing of the tool and all runs correctly. For each Module i am prompted to authenticate and i successfully authenticate to my O365 instance

Would MFA authentication have any issues with completing the authentication?

@buidav buidav added the public-reported This issue is reported by the public users of the tool. label Jan 28, 2025
@buidav
Copy link
Collaborator

buidav commented Jan 29, 2025

Hello, thanks for opening an issue.

InteractiveBrowserCredential authentication failed: User canceled authentication

Typically this error appears when you exit out of the authentication prompt.
We haven't seen a scenario where MFA would trigger this error.

Would MFA authentication have any issues with completing the authentication?
It should not but what type of MFA are you using for the second factor?

Also which type of tenant are you trying to authenticate to? M365Environment documentation Commercial or GCC High or etc?

@buidav buidav self-assigned this Jan 29, 2025
@Jpeezzee
Copy link
Author

Thank for you Feedback.

For our MFA we use Microsoft Authenticator to complete the authentication. What I have noticed is for EXO and Power Platform it authenticates perfectly fine but the other components I get the prompt that more rights are required. The other strange part is when it tries to authenticate to teams the prompt window does appear but stays blank and does not respond. I have to force close the prompt window after leaving it for extended period of time.

Or tenant is Commercial.

I am conducting further tests next week with a global admin account and will advise what my findings are after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
public-reported This issue is reported by the public users of the tool.
Projects
None yet
Development

No branches or pull requests

2 participants