Azure Portal Login automatically uses Windows Account - windows

In Internet Explorer, when I go to any site that is authenticated via Azure AD, the login page automatically chooses to log me in with my Windows Account. This functionality would typically be great, but I need to use different credentials (my clients).
How can tell IE to NOT automatically log me into Azure AD with my windows credentials?
When I use any different browser, the expected functionality exists and I am prompted to enter the login credentials I want. Also, the solution can not be "just use a different browser". Client uses IE for everything and won't allow users to install different browsers.
I am running Windows 10.
Thanks in advance

Opening IE InPrivate window should allow you to login with any user you need.
Use Ctrl+Shift+P or Settings Icon->Safety->InPrivate Browsing.

Related

Connect-AzAccount change browser

When I run Connect-AzAccount my default browser set on windows OS(Chrome) is not running. But instead it is loading IE and asking for login details. How to change the browser ?
At my company, we use MFA for our Azure AD account. Additionally, our local AD is not integrated with Azure AD. And to make it more challenging, we use our local AD account (first.last#company.com) to authenticate to Azure DevOps while we use our Azure AD account (first.last#admin.company.com) to authenticate to the Azure Resource Manager API.
Every time that I tried to authenticate with my Azure AD account (first.last#admin.company.com) in PowerShell with Connect-AzAccount, it would authenticate as with my local AD account (first.last#company.com), instead.
I tried the usual commands to no avail:
Disconnect-AzAccount
Clear-AzContext -Scope CurrentUser -Force
Disable-AzContextAutosave -Scope Process
I tried nuking the history in Internet Explorer, but no dice.
I changed the default browser on my laptop from Chrome to Edge, and I nuked the history in Edge. No impact. PowerShell seemed to still be using its same engine for managing the interactive Azure login page regardless of what the OS is using for the default browser.
I researched how to change the browser used by PowerShell to manage the interactive Azure login page (Connect-AzAccount) to work around the problem. But I didn't have any luck finding a solution.
Here's what ultimately worked in my scenario:
Disconnect-AzAccount
Connect-AzAccount -UseDeviceAuthentication
When you use the -UseDeviceAuthentication option, Connect-AzAccount lets you manually pick which browser you want to use for Azure authentication.
In my case, I used Chrome in incognito mode to perform Azure authentication, and I was finally able to authenticate with my Azure AD account ("first.last#admin.company.com") successfully.
Although this doesn't change the default browser used by Connect-AzAccount, it's a work-around to let you manually choose a different browser for Azure authentication.
The pop-up window is not the default browser, only az login is used to log in through the browser.
In az login, if you want to log in in any browser, log in through az login --use-device-code.
In Connect-AzAccount, the page opened by default is still the powershell tool, it is not a browser, the following gif can be clearly seen in the task manager.
Step 1. Run Connect-AzAccount in powershell.
Step 2. Check Task Manager.
Suggestion
You can login azure without browser by
Connect-AzAccount -Credential $Credential -Tenant $tenant -Subscription $subscription
For more details, you can refer to the post.
Connect-AzAccount - how to avoid azure device authentication?

Windows Authentication C# MVC3

Is it possible to have automatic user authentication from Active Directory when open Internet Explorer without user enter username/password.
As right now. I have windows authentication, where users after open internet explorer, they have to enter he/she username and password from AD. So since the application has the same credential that the PC. I was wondering, how could i do so user don't have to log in when open internet explorer to use the web application.
I am thinking something like single sign on type of deal.
If your users already log in with their AD credentials your problem is almost resolved.
Your users have to add the site to the local intranet zone (so they aren't prompted for credentials) in their Interner Explorer Configuration. Also check in internet explorer security zone settigns that the following is enabled:
User Authentication -> Set Automating Logon Only In Intranet Zone

Open FTP server on client side on button click

I am developing a web application.
If a user clicks on a button on the web page, then FTP server should be open in windows explorer and the user should be able to paste files on the server.
Please help me out......
Thanks in Advance.
I'm going to guess you are developing on PHP? instead of connecting to FTP perhaps you can try a php based file manager which opens upon user's click.
Below link provides good free file managers that allow users to manage files (alike on FTP) directly on the web, and it also will allow you to add protection on file level.
http://devsnippets.com/article/7-free-powerful-file-managers.html
on another note you can hardcode a link to the ftp to contain the username and password
note that most browsers do not open on windows explorer and you won't really have control on that through web. I definitely suggest the above instead.
xtp://username#name.ext will prompt for password
xtp://username:password#name.ext will transmit password witb no security

When accessing localhost IIS asks for username and password

I have installed IIS on Windows XP SP3. When I want to access localhost from my browser the authentication window appears and asks for user name and password. Anonymous access is enabled for IUSR_ user and this user has full control permission on wwwroot folder. Any help is appreciated in advance.
You've set your web site up to use Integrated Windows (NTLM) Authentication, which is supported by default in IE but not in Firefox. Firefox requires you to permit NTLM on a site-by-site basis.
This page explains how to enable NTLM and remove the login boxes in Firefox.
Basically, you need to type about:config in the address bar and add the hostname to the list of comma-separated values on the network.automatic-ntlm-auth.trusted-uris setting.
Let's say you have two sites that you want to enable NTLM authentication on: http://www.foo.com/ and http://www.bar.com/. You would need to set network.automatic-ntlm-auth.trusted-uris to www.foo.com, www.bar.com.
If you want your site to be accessible to anonymous users, you need to make sure that your IUSR_xxx account has at least read permission to the files that your web site is serving at the file system level. You can do this via Windows Explorer. I think you also need to grant list permission on the parent directories.

ASP.NET change logged-in user using Windows Auth without logging off PC?

How do I change who is logged in (allow for another user to login) to an application that is using Windows Authentication without having the PC user log off?
You would be better served to use forms-based auth against AD with impersonation. Pass-through authentication is uneven and introduces a number of issues you don't even want to begin to deal with.
To clarify: Do you want to be logged in to Windows with one account and then be able to view a web site that uses Windows Authentication with a different user?
Maybe you can run the browser under a different account with runas.
Right-click on your browser icon, choose "Run as...", and provide the other user's credentials.
You could prevent IE (I assume) from automatically passing NTLM credentials. But then you'll get a login dialog.
You can change the "automatically login behavior" by doing the following in IE:
Tools -> Internet Options ->
Security tab -> Intranet zone (I
assume)
Then click "Custom level..." and
scroll to the bottom to User
Authentication -> Logon.
Select the "Prompt for user name and
password" option.
FF has similar options by going into "about:config" and change the "network.automatic-ntlm-auth.trusted-uris" setting.

Resources