Problem in SampleProject
-
Hi!!
I'am using the project this link:
https://fusionauth.io/blog/2020/05/06/securing-asp-netcore-razor-pages-app-with-oauth
I'm using FusionAuth on the company's server, but as soon as I login I get a 400 error return, if you can help me in correcting this problem it will be of great help.
-
Hiya!
What version of FusionAuth are you using? Did you install it via docker?
Have you registered a redirect URI in FusionAuth that the user can land on after they sign in to FusionAuth?
Can you show a screenshot of the error you are seeing?
-
Hi Dan,
I installed FusionAuth via docker the version is 1.19.2
I'm learning how authentication works so I followed the tutorial to the letter, changing only the ID.
https://uploaddeimagens.com.br/imagens/9HJN7KU)


error

-
Ah, looks like you need to update the client secret.
From the .NET core app config, the client secret is
fem...and from your screenshot it isF1D.... They need to match.Can you try making sure they match and see if that helps?
-
@dan sorry for sending it wrong, i fixed it and the error 400 problem continues.
-
Hmmm.
I ran through the sample app on my machine and the sample app works. I did notice that the instructions in github were not as thorough as they should be. I updated them.
Can you take a look at them now: https://github.com/FusionAuth/fusionauth-example-asp-netcore
and see what happens if you follow those instructions for getting it running?
-
Also, what version of dotnet are you using?
-
Did you end up getting it working, @tiago-cruz ?