# \#aspnet-mvc

**URL:** https://community.auth0.com/tag/aspnet-mvc/534.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Leverage RBAC permissions in a regular Web Asp.Net Core Application](https://community.auth0.com/t/leverage-rbac-permissions-in-a-regular-web-asp-net-core-application/46727)

<div class="topic-metadata">

**Author:** [@samuel.pecoul](https://community.auth0.com/u/samuel.pecoul)\
**Replies:** 2\
**Last updated:** [October 6, 2023, 12:23am UTC](https://community.auth0.com/t/leverage-rbac-permissions-in-a-regular-web-asp-net-core-application/46727 "2023-10-06T00:23:40Z")

</div>

Hello ! My company want to switch from an old “home made” authentication/authorization system to Auth0 for all of their applications (mainly regular AspNet Core App). This ‘legacy’ authorization system is based on ‘per…

---

## [How to use getTokenSilently in .NET 6?](https://community.auth0.com/t/how-to-use-gettokensilently-in-net-6/92506)

<div class="topic-metadata">

**Author:** [@randy.grouls](https://community.auth0.com/u/randy.grouls)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 6:46pm UTC](https://community.auth0.com/t/how-to-use-gettokensilently-in-net-6/92506 "2022-10-27T18:46:44Z")

</div>

I have seen some examples of the SPA sdk’s where there is the option to use getTokenSilently to for example check if a user still has a valid Auth0 session. My problem is that I can’t find this functionality in the Auth0…

---

## [Authentication does not work in ASP.NET MVC OpenIdConnect when I turn off Implicit Flow](https://community.auth0.com/t/authentication-does-not-work-in-asp-net-mvc-openidconnect-when-i-turn-off-implicit-flow/58693)

<div class="topic-metadata">

**Author:** [@Reza](https://community.auth0.com/u/Reza)\
**Replies:** 9\
**Last updated:** [December 13, 2021, 8:48am UTC](https://community.auth0.com/t/authentication-does-not-work-in-asp-net-mvc-openidconnect-when-i-turn-off-implicit-flow/58693 "2021-12-13T08:48:06Z")

</div>

I followed the documentation regarding how to implement Authentication Code Flow Authorization Code Flow Add Login Using the Authorization Code Also, as was suggested in the latter, I followed the Quckstart as well, …

---

## [ASP Core MVC SDK](https://community.auth0.com/t/asp-core-mvc-sdk/72781)

<div class="topic-metadata">

**Author:** [@svenmarien](https://community.auth0.com/u/svenmarien)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 11:47am UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781 "2021-11-10T11:47:27Z")

</div>

I have used the Auth0 SDK for ASP NET Core to add Auth0 authentication to my MVC application. (I’ve followed the quickstart here: Auth0 ASP.NET Core MVC SDK Quickstarts: Login) This works fine on my development machine…

---

## [ASP.NET membership Import not working](https://community.auth0.com/t/asp-net-membership-import-not-working/67437)

<div class="topic-metadata">

**Author:** [@MartijnZ](https://community.auth0.com/u/MartijnZ)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 12:15pm UTC](https://community.auth0.com/t/asp-net-membership-import-not-working/67437 "2021-08-06T12:15:35Z")

</div>

Hi, I am running into this issue using an old ASP.NET project using Membership. It has the password hashed with sha1 in the database and salt in the dbo.Membership table. When trying to import an example using the use…

---

## [Cannot see role in User.Identity object](https://community.auth0.com/t/cannot-see-role-in-user-identity-object/56656)

<div class="topic-metadata">

**Author:** [@gwhitdev](https://community.auth0.com/u/gwhitdev)\
**Replies:** 2\
**Last updated:** [January 22, 2021, 8:47pm UTC](https://community.auth0.com/t/cannot-see-role-in-user-identity-object/56656 "2021-01-22T20:47:30Z")

</div>

Hello, I have used the sample Asp.Net MVC Core app to integrate my auth. I can login/out and see user profile details etc but the role claim isn’t appearing in the User.Idenity object. GitHub: MealSaverApp/MealSaverApp…

---

## [I want to skip the universal login screen and perform social login](https://community.auth0.com/t/i-want-to-skip-the-universal-login-screen-and-perform-social-login/55447)

<div class="topic-metadata">

**Author:** [@cwi](https://community.auth0.com/u/cwi)\
**Replies:** 1\
**Last updated:** [December 29, 2020, 8:38am UTC](https://community.auth0.com/t/i-want-to-skip-the-universal-login-screen-and-perform-social-login/55447 "2020-12-29T08:38:38Z")

</div>

I have a question about Universal Login. I am creating and using a .NET web application (non-.NET Core). I installed OWIN according to this Quick Start. I am using Social login (Gmail, Apple, etc.). But I don’t use …

---

## [How to use RBAC with an Application (rather than an API)?](https://community.auth0.com/t/how-to-use-rbac-with-an-application-rather-than-an-api/45301)

<div class="topic-metadata">

**Author:** [@dean.dashwood](https://community.auth0.com/u/dean.dashwood)\
**Replies:** 3\
**Last updated:** [June 27, 2020, 1:30am UTC](https://community.auth0.com/t/how-to-use-rbac-with-an-application-rather-than-an-api/45301 "2020-06-27T01:30:13Z")

</div>

I’m creating an ASP.Net MVC application. As such, I have configured an Application in the Auth0 dashboard (not an API). I’ve created some roles, and added users to those roles. When configuring an API, there is an opti…

---

## [Redirect URI function not defined in MVC client demo application](https://community.auth0.com/t/redirect-uri-function-not-defined-in-mvc-client-demo-application/42745)

<div class="topic-metadata">

**Author:** [@bhavya.khanna25](https://community.auth0.com/u/bhavya.khanna25)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 8:53pm UTC](https://community.auth0.com/t/redirect-uri-function-not-defined-in-mvc-client-demo-application/42745 "2020-05-27T20:53:14Z")

</div>

Hi, I have downloaded the demo mvc application and execute the same , its running without any error but no callback function define in code. I need callback function code through which Auth return the response code. A…

---

## [ASP.NET MVC Owin Multi-Tenant Application with Auth0 Application Per Domain Setup](https://community.auth0.com/t/asp-net-mvc-owin-multi-tenant-application-with-auth0-application-per-domain-setup/42905)

<div class="topic-metadata">

**Author:** [@briank](https://community.auth0.com/u/briank)\
**Replies:** 0\
**Last updated:** [May 13, 2020, 4:21am UTC](https://community.auth0.com/t/asp-net-mvc-owin-multi-tenant-application-with-auth0-application-per-domain-setup/42905 "2020-05-13T04:21:14Z")

</div>

I searched around for a while but did not find any useful info so I thought I’d post my issue here to get some help. I have an ASP.NET MVC application with multi-tenant setup where I have a single MVC application with m…

---

## [SSO using saml between dotnet & java application](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960)

<div class="topic-metadata">

**Author:** [@vbhatt](https://community.auth0.com/u/vbhatt)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 6:04pm UTC](https://community.auth0.com/t/sso-using-saml-between-dotnet-java-application/38960 "2020-03-06T18:04:48Z")

</div>

Hello Guys, Is it possible to create a SSO between .net & java application using SAML? We also want to use our custom database for authentication as well as for authorization. Any type of example or sample code will be …

---

## [Asp.net mvc site with lock callbacks back only to root](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027)

<div class="topic-metadata">

**Author:** [@mbghone](https://community.auth0.com/u/mbghone)\
**Replies:** 3\
**Last updated:** [December 14, 2018, 7:45am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027 "2018-12-14T07:45:49Z")

</div>

All is working well with my asp.net mvc 5 site. Except in this scenario: when i am logged out and I attempt to navigate to a page within the site (the action on the controller has an \[Authorize\] annotation). I am redir…

---

## [Asp.net Owin (Login with SSO feature) uing Auth0 facebook/gmail](https://community.auth0.com/t/asp-net-owin-login-with-sso-feature-uing-auth0-facebook-gmail/16024)

<div class="topic-metadata">

**Author:** [@prasath.panner](https://community.auth0.com/u/prasath.panner)\
**Replies:** 1\
**Last updated:** [October 24, 2018, 1:47pm UTC](https://community.auth0.com/t/asp-net-owin-login-with-sso-feature-uing-auth0-facebook-gmail/16024 "2018-10-24T13:47:37Z")

</div>

Hi All, I have to implement SSO uing auth0 with social media in Asp.net OWIN(Server side integration), Please share the documentation link if any

---

## [Auth0 not working with https for Asp.net MVC 5](https://community.auth0.com/t/auth0-not-working-with-https-for-asp-net-mvc-5/9100)

<div class="topic-metadata">

**Author:** [@awilliam](https://community.auth0.com/u/awilliam)\
**Replies:** 2\
**Last updated:** [February 19, 2018, 9:33pm UTC](https://community.auth0.com/t/auth0-not-working-with-https-for-asp-net-mvc-5/9100 "2018-02-19T21:33:18Z")

</div>

My ASP.NET MVC5 application has https enabled till the load balancer (AWS), and http behind it. When I try to authenticate using auth0, I am getting an error. I do understand that the problem is because the application…

---

## [Is it possible to validate the ADFS user with EmailId via Auth0?](https://community.auth0.com/t/is-it-possible-to-validate-the-adfs-user-with-emailid-via-auth0/9224)

<div class="topic-metadata">

**Author:** [@neeraj.kumari](https://community.auth0.com/u/neeraj.kumari)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 5:47pm UTC](https://community.auth0.com/t/is-it-possible-to-validate-the-adfs-user-with-emailid-via-auth0/9224 "2018-12-14T17:47:16Z")

</div>

I have implemented ADFS user’s login using Auth0 in Asp.Net C# mvc. And everything is working fine. Now my requirement is to validate the ADFS user using email via auth0 (I mean i want to check whether the user exist on …

---

## [Is it possible to fetch all ADFS users using Auto API in ASP.Net C#?](https://community.auth0.com/t/is-it-possible-to-fetch-all-adfs-users-using-auto-api-in-asp-net-c/9213)

<div class="topic-metadata">

**Author:** [@satinder.kaur](https://community.auth0.com/u/satinder.kaur)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 5:49pm UTC](https://community.auth0.com/t/is-it-possible-to-fetch-all-adfs-users-using-auto-api-in-asp-net-c/9213 "2018-12-14T17:49:47Z")

</div>

I have implemented ADFS user’s login using Auth0 in ASP.Net and everything is working fine. Now my requirement is that i want to fetch all ADFS users. Is it possible that I can fetch all ADFS users via auth0 api?

---

## [ASP OWIN application keeps returning 502 Bad Gateway](https://community.auth0.com/t/asp-owin-application-keeps-returning-502-bad-gateway/8558)

<div class="topic-metadata">

**Author:** [@jacques.bronkhorst](https://community.auth0.com/u/jacques.bronkhorst)\
**Replies:** 0\
**Last updated:** [October 24, 2017, 1:12pm UTC](https://community.auth0.com/t/asp-owin-application-keeps-returning-502-bad-gateway/8558 "2017-10-24T13:12:37Z")

</div>

My ASP OWIN Application suddenly developed an issue while trying to sign in I keep getting 502 Bad Gateway. I have not changed any of my initial code and the logs do not provide any indication as to an error. I download…

---

## [ASP.NET Core MVC calling api](https://community.auth0.com/t/asp-net-core-mvc-calling-api/7638)

<div class="topic-metadata">

**Author:** [@matteolocher](https://community.auth0.com/u/matteolocher)\
**Replies:** 1\
**Last updated:** [August 1, 2017, 8:13pm UTC](https://community.auth0.com/t/asp-net-core-mvc-calling-api/7638 "2017-08-01T20:13:59Z")

</div>

I have a microservice architecture with a ASP.NET Core MVC application as a frontend. All the microservices are also implemented as ASP.NET Core services (Rest Services). I created a Client in my dashboard and a API for …

---

## [Can different signing algorithms be used across the ID token and access token being issued?](https://community.auth0.com/t/can-different-signing-algorithms-be-used-across-the-id-token-and-access-token-being-issued/6784)

<div class="topic-metadata">

**Author:** [@support1](https://community.auth0.com/u/support1)\
**Replies:** 3\
**Last updated:** [May 30, 2017, 5:22pm UTC](https://community.auth0.com/t/can-different-signing-algorithms-be-used-across-the-id-token-and-access-token-being-issued/6784 "2017-05-30T17:22:28Z")

</div>

I have created a web app and web api using ASP .Net Core 1.1 MVC, and am using Auth0 as the authentication server between the two. Following one of the Auth0 Quickstart guides, it says: In the APIs section of the Auth…

---

## [Apostrophe at the end of the URL redirect after successful login](https://community.auth0.com/t/apostrophe-at-the-end-of-the-url-redirect-after-successful-login/6782)

<div class="topic-metadata">

**Author:** [@support1](https://community.auth0.com/u/support1)\
**Replies:** 2\
**Last updated:** [May 29, 2017, 8:34pm UTC](https://community.auth0.com/t/apostrophe-at-the-end-of-the-url-redirect-after-successful-login/6782 "2017-05-29T20:34:18Z")

</div>

After a successful login from my ASP .Net Core 1.1 MVC web app, Auth0 is redirecting me to: http://localhost:60856/’ As you can see, there is an apostrophe at the end of the URL, and I cannot for the life of me figure …

---

## [What is signin-auth?](https://community.auth0.com/t/what-is-signin-auth/6751)

<div class="topic-metadata">

**Author:** [@support1](https://community.auth0.com/u/support1)\
**Replies:** 10\
**Last updated:** [May 29, 2017, 3:32pm UTC](https://community.auth0.com/t/what-is-signin-auth/6751 "2017-05-29T15:32:15Z")

</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” - what is signin-auth? Is…

---

## [Choosing correct authentication flow for ASP .Net Core MVC web app](https://community.auth0.com/t/choosing-correct-authentication-flow-for-asp-net-core-mvc-web-app/6749)

<div class="topic-metadata">

**Author:** [@support1](https://community.auth0.com/u/support1)\
**Replies:** 1\
**Last updated:** [May 25, 2017, 9:10pm UTC](https://community.auth0.com/t/choosing-correct-authentication-flow-for-asp-net-core-mvc-web-app/6749 "2017-05-25T21:10:03Z")

</div>

I’m very new to OAuth2/OpenId (in fact very new to web development in general). I’m trying to understand which authentication flow I should be using. I have created a web API on the back-end, and on the front end we hav…
