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

Authentication issue #153

Closed
balakreshnan opened this issue Dec 1, 2022 · 6 comments
Closed

Authentication issue #153

balakreshnan opened this issue Dec 1, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@balakreshnan
Copy link

balakreshnan commented Dec 1, 2022

Describe the bug
DeviceCodeCredential.get_token failed: Authentication failed: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
Trace ID: 22c04acd-a816-42bc-bb4f-5f1c8dcb4c02
Correlation ID: 3c90998d-702c-4bd9-9ae3-02eeb373883b
Timestamp: 2022-12-01 19:02:02Z
Content: {"error":"invalid_client","error_description":"AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.\r\nTrace ID: 22c04acd-a816-42bc-bb4f-5f1c8dcb4c02\r\nCorrelation ID: 3c90998d-702c-4bd9-9ae3-02eeb373883b\r\nTimestamp: 2022-12-01 19:02:02Z","error_codes":[7000218],"timestamp":"2022-12-01 19:02:02Z","trace_id":"22c04acd-a816-42bc-bb4f-5f1c8dcb4c02","correlation_id":"3c90998d-702c-4bd9-9ae3-02eeb373883b","error_uri":"https://login.microsoftonline.com/error?code=7000218","claims":"{\"access_token\":{\"capolids\":{\"essential\":true,\"values\":[\"01e95e51-d161-4922-8776-747a86759589\",\"a5f338a6-266a-4dea-83e7-cd58e84f8929\"]}}}"}

graphUserScopes = [ "User.Read"]
device_code_credential = DeviceCodeCredential(client_id, tenant_id = tenant_id)
user_client = GraphClient(credential=device_code_credential, scopes=graphUserScopes)
result = user_client.get('/me')
print(result.json())

image

@balakreshnan balakreshnan added the bug Something isn't working label Dec 1, 2022
@balakreshnan
Copy link
Author

sorry i need to pass another parameter

@balakreshnan
Copy link
Author

The above error is happening and i installed all the latest software today. using python 3.8 with Azure ML using AML jupyter

@samwelkanda
Copy link
Contributor

Hi @balakreshnan. Thanks for reporting this issue. We are looking into it and will provide an update.

@n-masc
Copy link

n-masc commented Dec 14, 2022

I am having the same error. Was there an update to this issue?

@zdevaty
Copy link

zdevaty commented Oct 30, 2023

See telstrapurple/MSTeamsChatExporter#4 for a solution. It would be helpful if Microsoft documented this. Or even better, if the error message actually made sense.

@baywet
Copy link
Member

baywet commented Apr 25, 2024

thanks for reporting this issue, we have since released a new version of the SDK which this issue doesn't apply to. We encourage you to migrate to the new version and open a new issue if you still need help

@baywet baywet closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants