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

Error while executing the powershell script #8

Open
rahulsnc3it opened this issue Feb 21, 2024 · 1 comment
Open

Error while executing the powershell script #8

rahulsnc3it opened this issue Feb 21, 2024 · 1 comment

Comments

@rahulsnc3it
Copy link

image

We are trying to execute the command and getting below error, we have created Azure AD app with User.Read, Chat.Read and User.ReadBasic.All delegated permissions.

Also it gives URL to login with device code after successful login it throws below error

Error: Invoke-RestMethod: { "error": "invalid_client", "error_description": "AADSTS7000218: The request body must contain the following
parameter: \u0027client_assertion\u0027 or \u0027client_secret\u0027. Trace ID: 8c3a5e4e-2180-4483-8b05-2364b9543700
Correlation ID: be11d035-cc0a-4fee-afe0-7e3eb7142ac7 Timestamp: 2024-02-21 09:51:03Z", "error_codes": [ 7000218
], "timestamp": "2024-02-21 09:51:03Z", "trace_id": "8c3a5e4e-2180-4483-8b05-2364b9543700", "correlation_id":
"be11d035-cc0a-4fee-afe0-7e3eb7142ac7", "error_uri": "https://login.microsoftonline.com/error?code=7000218" }

@ctmort94
Copy link

Hey there. I needed a tool like this internally for some legal stuff, and I ran into this issue as well. Passing in the secret key did nothing.

Searching online for a resolution came pretty quickly afterwards so I thought I'd post it here in case someone comes across this in the future.

You need to enable Allow public client flows within the app registration authentication.

image

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

No branches or pull requests

2 participants