Click here to Skip to main content
15,893,904 members
Everything / Authentication

Authentication

authentication

Great Reads

by Aram Tchekrekjian
JWT is a very common and easy way to protect APIs in a standard, URL safe and cross-platform methodology.
by DotNetLead.com
Azure AD for authentication and authorization of users for your website
by ASP.NET Community
Reference about Forms Authentication in ASP.NET
by Thang Believe
Deep dive into cookies generation to support Remember Me at login

Latest Articles

by Nicolas DESCARTES
How to implement authentication in Blazor and ASP.NET Core ?
by Jim_Gray
Example code showing how to use Subtle Crypto to sign your request to Azure API in pure JavaScript or jQuery
by Ohad Redlich
authentication-flows-js is a powerful and highly customizable middleware for Node.js that covers all flows that any express-based authentication-server needs
by DotNetLead.com
Azure AD for authentication and authorization of users for your website

All Articles

Sort by Updated

Authentication 

18 Nov 2015 by /n software
Securing an Application with Multi-Factor Authentication using TOTP
5 Nov 2018 by 1suli0
Well, after a few hours of googling, I still can't find an answer, not even partial one. Is this even possible, or it must be custom solution? What I have tried: I've played around with locked out feature of Identity, but it seems, that is not the answer, because in that scenario user is...
25 Oct 2020 by 2 7182818
With long and painful researches i decided to use session based authentication. I am developing an Web application with .Net core as backend and React js as frontend. I recently swap Node js backend to .Net Core. I am using PostgreSQL as my...
7 Aug 2017 by 4d.kh4n
I ran in to a similar problem a while back .. after debugging my code i found out that the transaction that i was making was logically wrong.. the subtotal was off be $0.25 and paypal server saw it and refused to process it, and gave me 400 bad request
28 Feb 2013 by _Amy
Try increasing the Idle Time-out for the application pool to see if this helps at all.IIS --> Directory --> Config --> Options AND AppPool --> Properties.ORUse this in your configuration file: --Amit
6 Mar 2022 by _Asif_
There are tons of article present on Internet that explains how to set session timeout. One of the article doing same is provided for you. Set Session Timeout in ASP.Net Core[^]
23 Oct 2012 by a1mimo
First how do you know you are not logged in???Second if you did exactly what they do that is the right thing to happen to be redirected again to the default.aspx,why?simply because the defaultUrl property in the web.config file hasn't been set, so what is the defaultUrl property?it's the...
20 May 2014 by Aaron Hartley
I have a C# windows application written in VS 2010 that uses SQL Server Express database as the back-end. I'm finding that I have a need for having different users with different rights, to limit how much damage can be done by careless users. For example, one highly trusted user can mass delete...
25 Apr 2013 by abdussalam143
try these settings.
11 Apr 2018 by Abhijit Bodulwar
FirebaseAuth mAuth=FirebaseAuth.getReference(); final FirebaseUser annonymsUser; mAuth.signInAnnonmously(); annonymsUser=mAuth.getCurrentUser(); String AnnonymsUserID=annonymsUser.getUid(); // id:OxfVLTclVqNCPq6uTIUUdzxQoar1 mAuth.signInWithEmailAndPassword(email,password)...{}...
11 Apr 2018 by Abhijit Bodulwar
we cannot store instance of FirebaseUser for future use,we will always get current one.
5 Mar 2014 by Abhinav S
IMO, you cannot / should not try and integrate a windows login form with the Windows OS login screen.
7 Oct 2015 by Abhinav S
TryHow to enable SSL encryption for an instance of SQL Server[^]Encrypting Connections to SQL Server[^]Using SSL Encryption[^]
7 Apr 2014 by Abinash_Sahoo
I believe you have to customize different service providers, these links may be helpful for youCustomize User Login When Using the WCF Authentication Service[^]Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]
26 May 2014 by abkcareer
I'm working on a RESTful mobile application using ASP.Net Web APIs. I am inclined to use Basic authentication. I have followed some articles which gave me good start. I understood that "username:password" will be encoded and added to "Authorization: Basic " and sent it as header on subsequent...
14 Jan 2014 by ADonda
I want to secure web api for that i am using nugget package webapitokenauth(bootstrap).So for that i have modified authcontroller as per my needs that is i am authenticating user with sql database and returning userid, username, and role for that user in cookies as token.I check that login...
23 Apr 2013 by ADotNetDev
Hello,I am massing with Yahoo IMAP server to get authentication using Lumisoft IMAP library. I am using Lumisoft IMAP_Client.Authentication method to get authentication from Yahoo IMAP server using access token which I get from Yahoo using OAuth API. But I am getting [CLIENT BUG] Invalid...
11 Sep 2018 by Advay Pandya
Hello All,I am working on the authentication with Active Directory using ADFS.While searching, I got few articles to accomplish this requirement, but they are suggesting to redirect the Login page of application to Login page of ADFS and then come back.Redirecting to ADFS Login page...
22 Mar 2016 by Advay Pandya
Hello All,After doing some research on this, I followed below steps to implement this successfully.1) Add your website link as a relying party trust in ADFS. Please refer below guideline for the same.Step by Step Procedures to add a Relying Party on ADFS 2.0 - SharePoint...
9 Aug 2017 by Advay Pandya
Hello All, I am working with the functionality to integrate ADFS login page with my application. Flow User will try to visit page. Here system will try to authenticate user. System will redirect user to ADFS login page. User will enter login information. If user is authenticated then user...
9 Aug 2017 by Advay Pandya
I have done some configurations in config file and now system is going to fetch the claims information
16 Mar 2013 by AfnanMof
This WebPart is developed to display all site collections and subsites based on logged in authentication
31 Mar 2015 by Afzaal Ahmad Zeeshan
For this project, I would suggest that you continue with using ASP.NET Web API[^]. Web API would let you use REST services, and send responses in JSON format and also accept the request with JSON format of objects that are to be sent e.g. username and password data. You can consume these...
18 Jun 2019 by Afzaal Ahmad Zeeshan
You need to check how WSFed is supported in .NET Core, see this link to understand how things have changed, ASP.NET MVC Core Authentication against On-Perm ADFS · Issue #1920 · aspnet/AspNetCore · GitHub[^].
3 Sep 2019 by Afzaal Ahmad Zeeshan
Quote: The authorization server has a login-screen which will be used to authenticate users. The scenario I faced is, I need to use a common login-screen so that I login into the application that is already functioning? It seems as if you are trying to implement OAuth. Which means, that you want...
28 Dec 2017 by ajay458
this is code in web.config MVC5 application I am not getting which method it will call either GET Method or POST Method? I am also not getting control over debugger. What I have...
17 Nov 2014 by AjeetYadav
Right click on folder and choose Properties. In Security tab add ‘IUSER’ and 'NETWORK SERVICE' and give full control to both user.
4 Nov 2014 by Akashjoshi
On login button click event pass session["username"]=txtusername.text;And In your Landing Page use that session on Page_Load like if you used Lable then..lable1.text=session["username"];
26 Aug 2014 by akdas.net
Dear All,We have some internal app , in mvc trying to implement Sign Out functionality but not working properly, for time being we are closing the browser but window.close is not working for chrome and Mozilla , please help.Kind Regards .Ajit Kumar Das
7 Oct 2014 by Akhil Mittal
Ho w can we implement token based authentication in Web API 1.1.need a complete end to end small solution.Please do not provide links to articles explaining authentication in Web API 2.0.I need specifically for Web API 1.1, that do not support OWIN layer or in built token based authentication.
20 Apr 2018 by AkiStar
Aunthentication of user using canActivate routing in Angular
27 Mar 2013 by ali_heidari_
hey experts!i am trying to make a asp.net website . im interesting to make my own data providers for my custom user data !for authentication i decide use FormsAuthentication .for saving custom user data i decide to make my own custom profile provider.for Authorization i want use Role...
14 Feb 2014 by ali_heidari_
Hello.I want know , can i use windows authentication with custom database! for example a site with 10000 user, need a database to store user informations instead of making user account for everyone with hands.actually i want an authentication way that have a login dialog like windows...
5 Jan 2017 by Allyson Olarte
I'm using laravel 5.3, and using Hesto/multi-auth package. All my home.blade is working fine, in my nav bar it returns the current login user. But everytime I created a new view, and extend my nav bar to it my nav bar shows "LOGIN REGISTER" instead of username even though I'm already logged...
15 Dec 2013 by Amey K Bhatkar
Kick start to mvc project by creating login screen.
16 May 2013 by amitesh1989
I have a login form in which user have to enter credential i.e. username and password.In my code i check that user whether it is an authorized user or not now i also want to check what is the access level of that user according to its rolehere is my login page code:protected void...
10 Jul 2016 by an0ther1
Windows Authentication is not installed by default with certain versions of IIS.In Windows 7 you need to do the following;Control Panel >> Add Remove Programs >> Turn Windows Features on or off >> Internet Information Services >> World Wide Web Services >> Security >> Windows Authentication...
30 Sep 2020 by Ana Carolina Zambon
How to consume authorized back-end services while transparently handling refresh token renewals
23 Feb 2013 by ananthanunni
Hi.I am developing a library for active directory operations like authentication, create user, delete user, enable/disable user and change password.My library works fair except a few bugs.Issue #1. When I call...UserPrincipal.SetPassword(somePassword); ...the password is simply set...
28 Jun 2012 by anatolium
hello my friendsCan I run a thumbprint on the wcf authentication service?Can you give me the source?thanks
1 Feb 2016 by Android on Intel
High Performance and Security Software-Based Encryption by Intel® Advanced Encryption Standard New Instructions and Intel® Secure Key
17 Jul 2016 by Andy Point
Firebase Android Tutorial : Adding Registration and Login Hello Developers, this is our android firebase tutorial. In this tutorial we will create an android firebase app that will use firebase android login functionality. This post will help you get you up and running with integrating Firebase to a
25 Apr 2013 by angelvarun
Hi All,I have a simple requirement of not allowing a user to log into multiple browsers at a time. Same browser is fine. What is the simplest thing which can be done?
8 Nov 2013 by Anubhava Dimri
You can create a Action Filter that you need to place with the action.And In this Action Filter (OnActionExecuting and OnActionExecuted) you can write your authentication code.
26 Nov 2020 by Aram Tchekrekjian
JWT is a very common and easy way to protect APIs in a standard, URL safe and cross-platform methodology.
29 Nov 2020 by Aram Tchekrekjian
Easily secure ASP.NET Core Web API using API Key Authentication - just follow a few steps and secure your endpoints
7 May 2015 by arash2
Hi everyone,I'd like to have DB Logins registered for each user and to have custom connection string for each one. The main benefit of this approach is security. For some reasons, our users need to have their DB password, e.g. taking DB backups, ... .So for example if I want to register a...
29 Dec 2015 by arif_uap
Build your own web-api using new ASP.NET 5 with EF and IdentityUser inside OSX
5 Oct 2018 by Arpan_Patel
I have Windows Service which listen On-Premise Exchange Mail boxes using EWS with Impersonation Access. I have one Admin User (Service Account) which has Impersonation Access and I have configured the same user for my Windows Service Logon. I am using NTLM Authentication in C#.Net to login and...
5 Oct 2018 by Arpan_Patel
I have further investigated and found the root cause of this issue, see the details below and how to fix the same. 1. Actually I have installed Outlook and configured email account (user email account who does not have Impersonation Access) on the VM where i was facing issue, Upon restart of...
29 Jul 2013 by ashok yede201
Hello,I am new to MVC4.I have created new MVC4 project.I wanna to develop main basic things in this application.I would like to get some information about following things1. What are basic things to care?2. How to implement Authentication?3. How to implement...
30 Jul 2013 by ashok yede201
I have found one link for MVC4 Authentication, it works fine.Learn MVC (Model View Controller) Step by Step in 7 Days – Day 3[^]
4 Aug 2013 by ashok yede201
I am new at MVC 4. I have created MVC 4 application. I am using Basic Authentication. When I am first time loading then it works fine, it asks credentials. But when I make Ajax call from same view without any credentials still it calls Controllers Action. As I am using basic Authentication it...
22 Aug 2013 by ashok yede201
I got its solution,1. you just set basic authentication from IIS2. Set [Authorize] attribute to all actions.3. send user name and password from ajax call.
5 Aug 2021 by Ashutoshkrsingh
I have 1 mvc application and that is running fine on 2 url's with the same code deployed to different folder for both the url's to work. URL's are like https://www.abc.com/ - web form authentication https://www.abc.com/AD/ - windows...
23 Feb 2013 by Asim Mahmood
May this help you.http://www.c-sharpcorner.com/uploadfile/f9935e/password-policystrength-asp-net-validator-web-control/[^][]
2 Aug 2017 by ASP.NET Community
Reference about Forms Authentication in ASP.NET
11 Oct 2013 by ASP.NET Community
From MSDN: "The WindowsAuthenticationModule provider relies on Microsoft Internet Information Services (IIS) to provide authenticated users, using
11 Oct 2013 by ASP.NET Community
"ASP.NET Membership builds on the success of the Forms authentication model from ASP.NET 1.x. ASP.NET Forms authentication provides a convenient way
11 Oct 2013 by ASP.NET Community
Authentication means figuring out who you are and Authorization means figuring out what you can do. Both are fundamental parts of the ASP.NET
11 Oct 2013 by ASP.NET Community
ASP.NET 2.0 came with many controls designed to help you manage the login process and login status of your web site's users. The login
11 Oct 2013 by ASP.NET Community
Following Codes demonstrates how to send an email with SMTP Authentication using ASP.NET 3.5using System.Net.Mail        MailMessage msgMail =
11 Oct 2013 by ASP.NET Community
This is a broad topic so I’ll try to spare too many details and give you basics. DefinitionsSession Timeout: Get and sets the amount of time,
3 Dec 2014 by Assil
This post demonstrates the simplest use of OWIN with ASP.NET. It will not teach you OWIN nor Claim-based auth, nor design or security.
24 Feb 2024 by Avinash Tauro
Thank you for this question and solution. Works great. I am on .NET 8 and had to make 1 small change in the below code from var principal = new ClaimsPrincipal(identity); var ticket = new AuthenticationTicket(principal, Scheme.Name); return...
6 Jan 2019 by Aydin Homay
IdentityService is the best solution so far I know because it allows you to make service to service authentication and service to consumer authenitcation. I have used it in serveral projects successfully and got a good results.
14 Dec 2014 by baalamurugeesant
We are facing issue while trying to connect to a third party web service (webmethod) using certificate authentication using C#.NET. When we try the same through Soup UI, after installing client’s chain certificate in JKS (Java Key Store), it is working perfectly.We are trying to pass the...
13 Mar 2013 by Bernhard Hiller
For Vista and above, you can add a manifest which tells Windows that your application requires administrative privileges. Then the consent box will pop up and the user can enter user name and password of an administrator.
18 Feb 2014 by Bernhard Hiller
In that case, use your own user management. It' s a table with usernames and hashed passwords, and also email addresses, perhaps additional tables for roles and role memberships.
30 Jul 2015 by Brady Kelly
The heading pretty much asks the question, and I sort of know the passing about of tokens is involved, but it's quite a bit (I don't mean reams and reams here) of code to get going. How does my MVC5 app log in via Facebook?
24 Sep 2014 by Brian C Hart
I am trying to find out what is the basic software pattern for authentication. I've written up some toy code in LINQPad:void Main(){ // Login with a specific username and password. // If success, then token will contain a new GUID. // If failure, Guid.Empty is returned. var...
12 Jul 2016 by brzydkimech
Hi guys. I have a problem with windows authentication in ASP.NET. Maybe the soludtion is easy but I've stacked in one place and I can't move forward. Let me describe my problem. Even though I've placed all required configuration in web.config (I think I put all of them). ...
6 Jan 2019 by Cas Dijkstra
Hi, I'm planning to write a few api's to improve my programming knowledge. But as a starter I'm thinking about authentication. I've been searching for a solution, but I'm wondering if there are better options. What I want to achieve is to have a AuthenticationAPI which handles the...
6 Nov 2018 by cesare.cogliandro@teletu.it
Hi guys. I have a little problem: i would check user credentials using active directory on a PC on which the user cannot gain interactive access. I. E. I cannot log onto a given PC, but I need to insert my credentials in a program to perform some operations forbidden to the currently logged on...
3 Jul 2012 by Charles Wiebe and John Hansen
Maintaining code with complex permissions tends to be difficult, because the code can be distributed across multiple classes. By embedding permissions directly on methods and properties within a class, code is reduced and maintainability is simplified.
12 Dec 2013 by Chetan Patel
Use PerSession instead of PerCall instance mode.
12 Nov 2013 by CHill60
See the suggestions on the response to your stackoverflow post[^]
17 May 2018 by Chillin92
Currently, my project is using Hmac-SHA256 to do the authorization in APIM. We are struggle with how to generate, transmit and store the secret key between client side and ours. Is there any secure way to do this? What I have tried: For now, we are generating the secret key through openssl...
19 Jun 2013 by Christian Graus
You can just store the id of the logged in user in the session and write an authentication method which checks that, and add that attribute to your logged in methods.
10 May 2018 by Christian Graus
You're using .contains. This is a terrible idea, if you want to be secure, check for equality. My first guess, based on you not telling us anything about your attempts to debug this code, is that HashDecoded is empty or a single character, and thus HashInfo always contains it.
18 May 2017 by Chriz12
Hello, I have 2 applications running on IIS 8.5. Both of the applications need authentication. For the Authentication I used the Identity Data Model. When I run the applications from the debugger I have no problem login more than one user at the time. When I take them to the IIS the...
18 Oct 2017 by Chriz12
Here's the solution if someone else is facing similar issues. Katana Project - Documentation[^]