# What is signin-auth?

**URL:** <https://community.auth0.com/t/what-is-signin-auth/6751>\
**Category:** Get Help\
**Tags:** authorization-code-f, aspnet-mvc, aspnet-core\
**Created:** [May 25, 2017, 9:22pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751 "2017-05-25T21:22:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 25, 2017, 9:22pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/1 "2017-05-25T21:22:11Z")

</div>

I am developing an ASP .Net Core MVC web app which calls a web API using the “Authorization Code Grant Flow”. I see in a lot of examples, the redirect\_uri is “[http://localhost:60856/signin-auth](http://localhost:60856/signin-auth)” - what is signin-auth? Is it a controller I need to implement in my web app?  
Also, if anyone has any ASP .Net Core MVC samples using the “Authorization Code Grant Flow” I would greatly appreciate it.  
Thanks

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [May 26, 2017, 5:42am UTC](https://community.auth0.com/t/what-is-signin-auth/6751/2 "2017-05-26T05:42:37Z")

</div>

If you are using the .NET SDK, it will automatically generate the `signin-auth` middleware to process the response from Auth0 when it arrives - you do not need to implement this yourself. We don’t currently have a specific .NET Core sample using the Authorization Code flow.

---

<div class="post-metadata">

**Author:** ![mauricio](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mauricio/32/17809_2.png) [@mauricio](https://community.auth0.com/u/mauricio)\
**Post date:** [May 26, 2017, 8:45am UTC](https://community.auth0.com/t/what-is-signin-auth/6751/3 "2017-05-26T08:45:00Z")

</div>

To complement @prashant’s answer, the `/signin-auth` is the URL that will be called once your users have successfully authenticated through Auth0. And as he said, it’s part of the OAuth0 middleware setup. You can find more info here: [https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Samples/oauth2#4-configure-the-cookie-and-oauth-middleware](https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Samples/oauth2#4-configure-the-cookie-and-oauth-middleware)

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 26, 2017, 8:43pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/4 "2017-05-26T20:43:11Z")

</div>

Thanks guys. Yes, for some reason, I don’t think I have the signin-auth middleware.

This is my Startup.cs file:

> <https://gist.github.com/MrPrashantT/b2983aea2e5f46b9200392efa7ea7582>

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 26, 2017, 8:53pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/5 "2017-05-26T20:53:57Z")

</div>

Well, I don’t actually know if that is the problem… When I click the login link on my web app, it correclty opens up the Auth0 login form, but after logging in, I get the following error:

> <https://gist.github.com/MrPrashantT/b85c33cb473ff12ebe4f2006c3f8a15d>

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 26, 2017, 8:43pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/6 "2017-05-26T20:43:11Z")

</div>

Thanks guys. Yes, for some reason, I don’t think I have the signin-auth middleware.

This is my Startup.cs file:

> <https://gist.github.com/MrPrashantT/b2983aea2e5f46b9200392efa7ea7582>

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 26, 2017, 8:53pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/7 "2017-05-26T20:53:57Z")

</div>

Well, I don’t actually know if that is the problem… When I click the login link on my web app, it correclty opens up the Auth0 login form, but after logging in, I get the following error:

> <https://gist.github.com/MrPrashantT/b85c33cb473ff12ebe4f2006c3f8a15d>

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 29, 2017, 2:00pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/8 "2017-05-29T14:00:46Z")

</div>

Thanks for the reply Prashant. If I look at the Auth0 settings as you suggested, it is set to HS256. In my code, I don’t see anywhere where I am specifying which algorithm to use… I have a controller (AccountController) which fires up when the user selects “login”. This is the action that executes:

```
public class AccountController : Controller
{    
    public IActionResult Login(string returnUrl = "/")
    {
        return new ChallengeResult("Auth0", new AuthenticationProperties() { RedirectUri = returnUrl });
    }
}

```

I’m quite new to all this so not sure if somewhere there I should perhaps be specifying the algorithm? Unfortunately I haven’t found a single example of the Authorization Code Grant Flow using ASP .Net Core ☹

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 29, 2017, 3:32pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/9 "2017-05-29T15:32:15Z")

</div>

You were right Prashant - after switching to RS256 in the Auth0 settings page, my web app now works. So for some reason, my web app is using the RS256 algorithm…

---

<div class="post-metadata">

**Author:** ![support1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/support1/32/8447_2.png) [@support1](https://community.auth0.com/u/support1)\
**Post date:** [May 29, 2017, 3:32pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751/10 "2017-05-29T15:32:15Z")

</div>

You were right Prashant - after switching to RS256 in the Auth0 settings page, my web app now works. So for some reason, my web app is using the RS256 algorithm…

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [May 29, 2017, 5:20am UTC](https://community.auth0.com/t/what-is-signin-auth/6751/11 "2017-05-29T05:20:28Z")

</div>

[@support](https://community.auth0.com/groups/support) That error seems to indicate that your middleware is not configured for the correct signing algorithm. Can you please check what signing algorithm your tokens are signed using, and ensure it matches your configuration in your application.

Dashboard \> Clients \> Your client \> Advanced Settings \> OAuth \> JsonWebToken Signature Algorithm.

Note: For long code snippets, please use something like [https://gist.github.com/](https://gist.github.com/), and share the link in your comment.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/what-is-signin-auth/6751/12 "2018-03-02T05:54:07Z")

</div>


