asp.net-authentication Questions

3

Solved

My ASP.NET Core app uses "out-of-box" external login authentication. What I want to implement - on facebook challenge I want to wrap redirect url and return it as json to consume in jquery frontend...
Nathalia asked 21/4, 2020 at 19:25

2

Solved

How can I use OIDC authentication in server-side Blazor? I used this method, but somehow it's not right because @attribute [AllowAnonymous] doesn't really work. So I used the [Authorized] attribute...

4

Solved

I'm working on a .NET Core 2.1 Web application with CookieAuthentication. For some reason setting the ExpireTimeSpan and Cookie.Expiration on the CookieAuthenticationOptions object doesn't have an ...

1

Solved

I am learning how security works in ASP.NET Core 2.0 and IdentityServer4. I set up the projects with IdentityServer, API and ASP.NET Core MVC Client App. The ConfigureService method in the Client A...
Uninspired asked 25/9, 2018 at 7:20

2

Solved

I am having an issue where I cannot seem to get my Identity Server logout to show the confirmation first. I downloaded the source code for IdentityServer4 from github and found the parameter in the...
Griffis asked 5/3, 2018 at 15:24

0

How are they connected? I can use HttpContext.SignInAsync, and then HttpContext.User is set to provided identity, however I have one identity and multiple authentication ways - what if user login a...
Reichert asked 20/1, 2018 at 16:58

3

Solved

I understand that I can use claims to make statements about a user: var claims = new List<Claim>(); claims.Add(new Claim(ClaimTypes.Name, "Peter")); claims.Add(new Claim(ClaimTypes.Email, "[...

3

Solved

In order to increase session timeout, it appears I would use the following setting: <system.web> <sessionState mode="InProc" timeout="20" /> /* Etc... */ </system.web> Here t...
Bolger asked 19/8, 2017 at 15:0

1

Solved

I'm trying to implement LinkedIn/OAuth authentication in my ASP.NET Core 2.0 app and I need to set the scope to { "r_basicprofile", "r_emailaddress" } so that I can user's email, profile image, etc...
Us asked 19/8, 2017 at 22:49

7

Solved

I have copied a previous project and renamed it. Once I had successfully renamed all the name spaces and it build correctly. I got the following error when I ran the application: The following err...

1

This documentation describes in part how to use more than one authentication scheme: In some scenarios, such as Single Page Applications it is possible to end up with multiple authentication met...
Strychninism asked 1/2, 2017 at 17:3

1

Solved

How do I implement an Automatic Logout Timer. So basically if the user is inactive for x minutes their session is ended? I have tried: <system.web> <sessionState timeout="1"/> <...

1

Solved

I am trying to create a REST service using asp.net web api and everything is working fine but I have now come across what to do with authentication. I am a little confused of where to start, here ...

2

I have seen the default 'Account' Model and Controller which comes default with a standard MVC3 Application, how ever, as I have generated my Database first. I already have designed my own 'Users...
Melindamelinde asked 8/4, 2012 at 20:0

2

Solved

How do i get all users from a specific role? var users = Membership.GetAllUsers(); gets all users in all roles. it returns a list of MembershipUser, but there is no role property. Thanks
Predicant asked 6/2, 2012 at 8:43

4

Solved

I'm currently making a custom login in ASP.NET. I've modified the code of the Login Control to use my database instead of the Aspnet table. Here's a sample of my code; using System; using System.D...
Bellebelleek asked 28/4, 2011 at 3:40

3

Solved

There are plenty of questions (and information) on setting up asp.net membership, role providers and the like. Whether or not you should use the built in platform provided by microsoft, or role ext...
1

© 2022 - 2024 — McMap. All rights reserved.