windows-authentication

ASP.NET WindowsAuthentication custom 401 Unauthorized error page

一笑奈何 提交于 2020-08-02 06:18:26
问题 I have an ASP.NET web-site with authentication using ActiveDirectory. Now , when an authenticated user opens a page - he is automatically authenticated. I have faced a problem - when a non-authenticated user ( for example, a Mozilla Firefox user with not defined network.automatic-ntlm-auth.trusted-uris property ) opens a page, IIS sends 401 response and prompts for a login \ password. What I want is not to prompt him for a login \ password - just show a custom error page. It sounds pretty

Windows Authentication and Angular 7 application

醉酒当歌 提交于 2020-07-19 11:01:49
问题 I have developed intranet application Backend: ASP.NET WEB API-2 (All controllers have Authorize attribute), Frontend: Angular 7 (after prod build I moved generated scripts to my backend project): .... <app-root> <div id="preloader"></div> </app-root> <script type="text/javascript" src="~/Scripts/SPA/runtime.26209474bfa8dc87a77c.js"></script> <script type="text/javascript" src="~/Scripts/SPA/es2015-polyfills.bda95d5896422d031328.js" nomodule></script> <script type="text/javascript" src="~

Windows Authentication and local DB user authentication

人盡茶涼 提交于 2020-07-10 10:32:29
问题 I am using windows authentication impersonation in my MVC application.when i open the application the browser display a prompt for the credentials and validate the domain users. But now i also want to create user in my application and also want to authenticate that users which is stored in my database. Is it possible to authenticate Application DB users as well with windows authentication for domain users. i did much R & D on this but didn't found any solution yet. I will appreciate your

Can an application server outside a windows domain verify a user of that domain?

我只是一个虾纸丫 提交于 2020-07-10 10:27:42
问题 I am building a Winform App which includes an App server using C#. It's for a corporate client of mine and the client has it's own windows domain. However, the app server will NOT be in their domain. The app will sit in a cloud VM . The client (like any client) wants to make things easy for their users. They want to use their user's windows Id. They don't want their users having to log in again to access my App. As long as the user is part of a windows domain group , he/she should be given

Asp.Net Core Windows Authentication Not Working in IIS

南笙酒味 提交于 2020-06-10 12:47:47
问题 Asp.Net Core doesn't seem to recognize the user from the call context?.User?.Identity?.Name when windows authentication is enabled and running in IIS Express or IIS. Desired behavior: Enabling both Windows authentication and anonymous authentication in IIS and/or IIS Express, Asp.Net Core should automatically recognize the windows user. Actual behavior: When I enable both windows and anonymous authentication in IIS or IIS Express, the user name is null. When I disable anonymous authentication

Why doesn't cURL work with Windows Authentication on IIS7?

99封情书 提交于 2020-06-09 08:01:49
问题 I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do the following, I get a 401 error, and I am absolutely sure the password is correct. curl --user username:password http://example.com Why doesn't this work? 回答1: If you are using Windows Authentication, you need to use NTLM: curl --ntlm --user username:password http://example.com 回答2: You can also

Why doesn't cURL work with Windows Authentication on IIS7?

痞子三分冷 提交于 2020-06-09 08:01:26
问题 I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do the following, I get a 401 error, and I am absolutely sure the password is correct. curl --user username:password http://example.com Why doesn't this work? 回答1: If you are using Windows Authentication, you need to use NTLM: curl --ntlm --user username:password http://example.com 回答2: You can also