tagged [authentication]
How to get the current user in ASP.NET MVC
How to get the current user in ASP.NET MVC In a forms model, I used to get the current logged-in user by: How do I get the current user inside a controller class in ASP.NET MVC?
- Modified
- 11 Jan at 18:41
How to Use SHA1 or MD5 in C#?(Which One is Better in Performance and Security for Authentication)
How to Use SHA1 or MD5 in C#?(Which One is Better in Performance and Security for Authentication) In C# how we can use SHA1 automatically?Is SHA1 better than MD5?(We use hashing for user name and pass...
- Modified
- 23 Feb at 08:10
Using Bcrypt with ServiceStack
Using Bcrypt with ServiceStack I am looking to use ServiceStack for an upcoming project, but I want to use bcrypt for hashing passwords. Currently the builtin repositories use SHA256 hashing. Is there...
- Modified
- 10 Oct at 18:52
Detecting Web.Config Authentication Mode
Detecting Web.Config Authentication Mode Say I have the following web.config: Using ASP.NET C#, how can I detect the Mode value of the Authentication tag?
- Modified
- 18 Sep at 11:47
How do you find the users name/Identity in C#
How do you find the users name/Identity in C# I need to programatically find the users name using C#. Specifically, I want to get the system/network user attached to the current process. I'm writing a...
- Modified
- 17 Jul at 19:38
Using HTTP Authentication with a C# WebRequest
Using HTTP Authentication with a C# WebRequest I want to make a web request to a page that needs authenticating. How would I go about doing this? I found something that said possibly to use the Creden...
- Modified
- 2 Apr at 00:38
What's the difference: Windows Authentication, Passport Authentication and Form Authentication?
What's the difference: Windows Authentication, Passport Authentication and Form Authentication? Just going to start making a web application and was wondering which was better, or at least what are th...
- Modified
- 17 Sep at 19:48
ServiceStack Breaking Change in 4.0.22.0, CredentialsAuthProvider.OnAuthenticated now returns something
ServiceStack Breaking Change in 4.0.22.0, CredentialsAuthProvider.OnAuthenticated now returns something I updated to version 4.0.22.0 this afternoon, and the OnAuthenticated method of class Credential...
- Modified
- 20 Jun at 20:39
Copy file on a network shared drive
Copy file on a network shared drive I have a network shared drive ("\serveur\folder") on which I would like to copy file. I can write on the drive with a specific user ("user"/"pass"). How can I acces...
- Modified
- 22 Jul at 16:27
How to connect to MySQL from the command line
How to connect to MySQL from the command line How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're alread...
- Modified
- 14 Sep at 14:2
Authenticated ServiceStack.Redis.PooledRedisClientsManager
Authenticated ServiceStack.Redis.PooledRedisClientsManager How do I specify a username and password for the Redis hostname when instantiating a `PooledRedisClientManager`? I specifically need to deplo...
- Modified
- 14 Jan at 21:32
How to implement auth by credential in soapclient?
How to implement auth by credential in soapclient? I found the method " WcfServiceClient.SetCredential" is commented, so I try create new ChannelFactory and assign the property "Credentials.UserName" ...
- Modified
- 5 Jan at 03:53
ASP.NET WindowsAuthentication custom 401 Unauthorized error page
ASP.NET WindowsAuthentication custom 401 Unauthorized error page I have an ASP.NET web-site with authentication using ActiveDirectory. , when an authenticated user opens a page - he is automatically ...
- Modified
- 24 Aug at 09:55
How do I log into a site with WebClient?
How do I log into a site with WebClient? I want to download something using a WebClient object in C#, but the download domain requires me to be logged in. How can I log in and keep session data using ...
- Modified
- 8 Nov at 14:15
Getting NetworkCredential for current user (C#)
Getting NetworkCredential for current user (C#) I'm trying to invoke a webservice from a console application, and I need to provide the client with a `System.Net.NetworkCredential` object. Is it possi...
- Modified
- 4 Jun at 08:51
How to check user is "logged in"?
How to check user is "logged in"? I am using form authentication with below method in my ASP.NET application How do I check whether user is logged in or not? And how can I get the user name of a logge...
- Modified
- 13 Jan at 21:18
Change GitHub Account username
Change GitHub Account username I want to change my account's user name on GitHub, but I can't find how to do it. Is this possible at all? To clarify, I'm not talking about the user.name parameter in a...
- Modified
- 12 Feb at 19:38
Servicestack: restrict MVC action by role
Servicestack: restrict MVC action by role I want to restrict an ASP.NET MVC action for a role. I think it should be something like this: How to remove access to action for some role?
- Modified
- 6 Aug at 12:44
Unlock Windows programmatically
Unlock Windows programmatically In my current C# code I'm able to lock a Windows user session programmatically (same as Windows + L). Since the app would still be running, is there any way to unlock t...
- Modified
- 7 Aug at 19:28
What's the best way to specify a proxy with username and password for an **https** connection in python?
What's the best way to specify a proxy with username and password for an **https** connection in python? I read somewhere that currently urllib2 doesn't support authenticated https connection. My prox...
- Modified
- 15 Jan at 14:12
How to unit-test an MVC controller action which depends on authentication in c#?
How to unit-test an MVC controller action which depends on authentication in c#? I'd like to write (in c#) a unit-test for an MVC controller action which might return one view or the other, depending ...
- Modified
- 12 Oct at 08:6
Is it possible to use an existing ASP.NET Core AuthenticationHandler with ServiceStack?
Is it possible to use an existing ASP.NET Core AuthenticationHandler with ServiceStack? I have a custom `AuthenticationHandler` built to tie into the Claims-based authorization in ASP.NET Core. Is it ...
- Modified
- 22 Jan at 14:4
Unauthorized (Invalid Token) when authenticating with JWT Bearer Token after update to .NET 6
Unauthorized (Invalid Token) when authenticating with JWT Bearer Token after update to .NET 6 After updating the package `Microsoft.AspNetCore.Authentication.JwtBearer` from version 3.1.14 to 6.0.1, r...
- Modified
- 4 Jan at 13:3
How to login and authenticate to Postgresql after a fresh install?
How to login and authenticate to Postgresql after a fresh install? Did a new install of postgres 8.4 on mint ubuntu. How do I create a user for postgres and login using psql? When I type psql, it just...
- Modified
- 17 Oct at 16:6
How to add basic authentication header to WebRequest
How to add basic authentication header to WebRequest I have a basic WCF service and I want to test it using HttpWebRequest. The problem is that I use basic authentication. How do I add a header with b...
- Modified
- 15 Sep at 16:24