FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Problem in SampleProject

    Scheduled Pinned Locked Moved
    General Discussion
    2
    8
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tiago.cruz
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        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?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • T
          tiago.cruz
          last edited by

          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.

          keymaster.PNG https://uploaddeimagens.com.br/imagens/9HJN7KU)

          aplication.PNG

          jwt.PNG

          appsettings.PNG

          Request:
          http://172.19.0.159:9011/oauth2/authorize?client_id=5a922394-3263-4a1c-b5b6-1c6e498227d8&redirect_uri=http%3A%2F%2F172.19.0.12%3A8081%2Fsignin-oidc&response_type=code&scope=openid profile&code_challenge=gEgxGR927-XZRexwI11bSmS4ChW_arUn4GananR0IM4&code_challenge_method=S256&response_mode=form_post&nonce=637356908039891879.MGNkOWY3OTMtNWY3MC00NGU2LTgwZTgtMDA1MTZlYTI0NTY0YWQ4MWU5ZmYtMTQ3Yy00NjllLWIyMDItMWU1NDVmZjQ5ZjU1&state=CfDJ8Dm9ktR7nZ5ChEzRZqzNTDR2uG27hxgnvm0fSGh7JxgCZPh8Xu2eVyGBM6ngL-iDlIOaAARltdVy0qPzOLWgs39whoKUBoUSOs6LvrBn59Lr6K6c_y8heEZJFlMj1tegjW0Q-pki175kd4omZycK86fQ0d-hM8O9XHylL6LShI99nEB36sELI1Xa4NjiImjsmHX5ZeLtKlPxtXKdWI3AjtAXB95JtJ1ivTf49172sZZsjLvyqQIF0tJtOSqTJoGyfQ-iodLtrSv6sYf_9IXqt8BDBacFCclLMAO_i3in9a_LQ-bP-q4-o_wZPG_-NbEBn7qRydQwdj62OLPYYIInteVqnZshH4CeYapaRGkyaij9EzNkBqmrka-vdzhn57QK0g&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=5.5.0.0

          error
          error.PNG

          1 Reply Last reply Reply Quote 0
          • danD
            dan
            last edited by

            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 is F1D.... They need to match.

            Can you try making sure they match and see if that helps?

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            T 1 Reply Last reply Reply Quote 0
            • T
              tiago.cruz @dan
              last edited by

              @dan sorry for sending it wrong, i fixed it and the error 400 problem continues.

              1 Reply Last reply Reply Quote 0
              • danD
                dan
                last edited by

                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?

                --
                FusionAuth - Auth for devs, built by devs.
                https://fusionauth.io

                1 Reply Last reply Reply Quote 0
                • danD
                  dan
                  last edited by

                  Also, what version of dotnet are you using?

                  --
                  FusionAuth - Auth for devs, built by devs.
                  https://fusionauth.io

                  1 Reply Last reply Reply Quote 0
                  • danD
                    dan
                    last edited by

                    Did you end up getting it working, @tiago-cruz ?

                    --
                    FusionAuth - Auth for devs, built by devs.
                    https://fusionauth.io

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post