tagged [authentication]

How do I customize the Forms Authentication cookie name?

How do I customize the Forms Authentication cookie name? I have 2 websites running on localhost in different ports. As browsers do not differentiate port numbers when sending cookies, my forms authent...

2 Sep at 21:59

Set up JWT Bearer Token Authorization/Authentication in Hangfire

Set up JWT Bearer Token Authorization/Authentication in Hangfire How can you configure Bearer Token Authorization/Authentication in Hangfire? I have a custom authentication filter that read the Authen...

ASP.NET MVC - cross sub domain authentication/membership

ASP.NET MVC - cross sub domain authentication/membership Hit a roadblock while implementing a [sub domain based language switcher](https://stackoverflow.com/questions/1170008/building-a-language-switc...

.NET exceptions I can throw for Not Authorized or Not Authenticated

.NET exceptions I can throw for Not Authorized or Not Authenticated I have parts of code where I want to throw an Exception whenever a user is not authenticated/not authorized. So instead of writing m...

Can I check for the existence of an HTTP only cookie with Javascript?

Can I check for the existence of an HTTP only cookie with Javascript? Can I use Javascript to see if an HTTP-only cookie , I don't want to see the value, just know whether or not it is there. I need t...

What is the best way to create a new field for UserAuth?

What is the best way to create a new field for UserAuth? I would like to create a `DefaultPrinterId` property (field) attached on `UserAuth` table. This `DefaultPrinterId` field is a foreign key on a ...

28 Nov at 16:56

Service Stack how to implement custom validation without registration

Service Stack how to implement custom validation without registration I am learning ServiceStacks and validations. I am still pretty new to this. I am interested in validating without registering a us...

4 Aug at 22:40

Web Services authentication - best practices?

Web Services authentication - best practices? We have SOAP web services in production that are relying on SOAP Headers (containing plain client credentials) for the authentication. The WS are used in ...

15 Jan at 12:33

How to use ServiceStack authentication correctly in ASP.Net MVC controller

How to use ServiceStack authentication correctly in ASP.Net MVC controller I'm having problem with getting ServiceStack [Authentication] attribute to work in ASP.Net MVC4 controller, pages / action me...

Authentication method 'caching_sha2_password' not supported by any of the available plugins

Authentication method 'caching_sha2_password' not supported by any of the available plugins When I try to connect MySQL (8.0) database with Visual Studio 2018 I get this error message > "Authenticatio...

Accessing a web service and a HTTP interface using certificate authentication

Accessing a web service and a HTTP interface using certificate authentication It is the first time I have to use certificate authentication. A commercial partner expose two services, a XML Web Service...

ServiceStack CustomAuthenticationMvc Admin password?

ServiceStack CustomAuthenticationMvc Admin password? I'm running the ServiceStack Use Cases example of CustomAuthenticationMvc but whe I'm try to Log in I pur in the asp mvc Log in page User: admin pa...

ServiceStack OAuth2 provider implementation

ServiceStack OAuth2 provider implementation I have application developed with ServiceStack that used credential authentication for login. Now I need services of application to be consumed by other app...

7 May at 09:22

ASP.NET Core disable authentication in development environment

ASP.NET Core disable authentication in development environment Is it possible to "disable" authentication in ASP.NET Core application without changing its logic? I have a .net website which uses an ex...

7 Mar at 13:26

Globally enable authentication in ServiceStack, except for some requests

Globally enable authentication in ServiceStack, except for some requests Using [ServiceStack](https://github.com/ServiceStack/ServiceStack), I have to selectively [enable authentication](https://githu...

16 Oct at 08:28

Using the ServiceStack AuthProvider, how to limit an authenticated user to its own resources?

Using the ServiceStack AuthProvider, how to limit an authenticated user to its own resources? I am using the ServiceStack Credentials AuthProvider for an REST service and the authentication process wo...

24 Nov at 22:5

How to authenticate user with Azure Active Directory using OAuth 2.0?

How to authenticate user with Azure Active Directory using OAuth 2.0? I have a REST API written in C# and I need to authenticate with an existing Azure AD service. I currently have the username and pa...

ServiceStack Jwt authentication check if authenticated

ServiceStack Jwt authentication check if authenticated I need to allow anonym access endpoint but still check if user is authenticated then give some extra data. using [Authenticate] attribute I can u...

minLength data validation is not working with Auth component for CakePHP

minLength data validation is not working with Auth component for CakePHP Let's say I have a user registration and I'm using the Auth component (/user/register is allowed of course). The problem is if ...

1 May at 07:25

Salt and hash a password in Python

Salt and hash a password in Python This code is supposed to hash a password with a salt. The salt and hashed password are being saved in the database. The password itself is not. Given the sensitive n...

401 Unauthorized: Access is denied due to invalid credentials

401 Unauthorized: Access is denied due to invalid credentials I am using IIS Express to deploy MVC4 application. This website runs perfectly on same computer. But in Lan it gives me error 401. In home...

Using ServiceStack's AuthService with Controller and AuthorizeAttribute

Using ServiceStack's AuthService with Controller and AuthorizeAttribute There is no simple ServiceStack sample as classic ASP.NET MVC. Both AppHarbor and SocialBootStrap api based on SinglePage Applic...

How do I determine (elegantly) if proxy authentication is required in C# winforms app

How do I determine (elegantly) if proxy authentication is required in C# winforms app My use case is this, I want to call out to a webservice and if I am behind a proxy server that requires authentica...

29 Jan at 01:29

Storing more information using FormsAuthentication.SetAuthCookie

Storing more information using FormsAuthentication.SetAuthCookie I am using aspx and c# for a setting a authentication cookie for a login. I want to store more information in the same cookie. Can I ad...

Removing the remembered login and password list in SQL Server Management Studio

Removing the remembered login and password list in SQL Server Management Studio I've recently used our company's spare laptop (that has a general user set up) while mine was being repaired. I've check...