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 login. Getting error: AADSTS7000218 The request body must contain the following parameter... #9

Closed
riccardone opened this issue Apr 5, 2019 · 8 comments

Comments

@riccardone
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Login specifying TenantId

Any log messages given by the failure

AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'

Expected/desired behavior

Show user logged in info

OS and Version?

Windows 10

Versions

Mention any other details that might be useful

This is the modified appsettings.json that I'm using. Note that I've created a User and I've registered the application.
{
"Authentication": {
"AzureCloudInstance": "AzurePublic",
"Tenant": "organizations",
"TenantId": "5b31a837-fb9b-47cd-82cd-d99eede0dc64",
"ClientId": "482783e9-f148-452c-ab61-90d6ffc009f7"
},
"WebAPI": {
"MicrosoftGraphBaseEndpoint": "https://graph.microsoft.com"
}
}


Thanks! We'll be in touch soon.

@riccardone riccardone changed the title Unable to login with. Getting error: AADSTS7000218 The request body must contain the following parameter... Unable to login. Getting error: AADSTS7000218 The request body must contain the following parameter... Apr 5, 2019
@jmprieur
Copy link
Contributor

jmprieur commented Apr 5, 2019

@riccardone
Did you look, in the README.md in the paragraph Register the client app (active-directory-dotnet-deviceprofile, did you go through step 5 (editing the manifest to set allowPublicClients to true)

@riccardone
Copy link
Author

Thanks, now it works!

@R-gabriela
Copy link

Gracias igual para mi funciona a la perfección, gracias por el aporte

@ahelwer
Copy link

ahelwer commented Oct 29, 2019

In case anyone else finds this through a search engine, I also ran into this error when acquiring a token with the system browser on .NET Core 3.0. I had set http://localhost as a redirect URL in my app, but accidentally set it to type "Web" rather than "Public client/native (mobile & desktop)".

@rblogan78
Copy link

In case anyone else finds this through a search engine, I also ran into this error when acquiring a token with the system browser on .NET Core 3.0. I had set http://localhost as a redirect URL in my app, but accidentally set it to type "Web" rather than "Public client/native (mobile & desktop)".

This did the trick for us! Thanks!

@kwoxer
Copy link

kwoxer commented Mar 3, 2021

@jmprieur
Copy link
Contributor

jmprieur commented Mar 3, 2021

@kwoxer :I answered the stack overflow question

@foto-andreas
Copy link

I also had to set the port number in the localhost-reply-url

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

7 participants