fullstackproltd / AspNetCoreSpa

Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
https://aspnetcorespa.fullstackpro.co.uk
MIT License
1.47k stars 464 forks source link

Issue when setting locally Social login #189

Closed cristianconde closed 6 years ago

cristianconde commented 6 years ago

After setting facebook Id's I get this issue every time:

error:invalid_request error_description:The specified 'redirect_uri' parameter is not valid for this client application.

this is the request URL: http://localhost:5000/connect/authorize?response_type=id_token%20token&client_id=aspnetcorespa&state=ipfAqg1LUk1BEkmDXIlNotDJQXxL34PSVpLj9aON&redirect_uri=http%3A%2F%2Flocalhost%3A5000&scope=openid%20profile%20email%20offline_access%20client_id%20roles&nonce=ipfAqg1LUk1BEkmDXIlNotDJQXxL34PSVpLj9aON&provider=Facebook

I guess I'm missing a configuration but I can't find wich. Can you give me a hint? Thanks

cristianconde commented 6 years ago

Solved by removing trailing slash from the redirect URI in the DB: from http://127.0.0.1:5000/ to http://127.0.0.1:5000

Hope someone else find this useful.

mrandreev commented 6 years ago

Hi @elcondedebahia

Did you remove just trailing slash and keep everything like it was? Because I have exactly the same problem and your solution doesn't fix it. Maybe there is something else?

Thanks :)

cristianconde commented 6 years ago

Did you make that change in the DB to http://localhost:5000? Also did you change the application ID in the code and also in the DB? Let me know.