MVC 5 Prompt for Windows Authentication Only Once2019 Community Moderator ElectionWhat are MVP and MVC and what is the difference?What is the difference between MVC and MVVM?How do I force windows authentication with local asp.net development server?ASP.NET MVC 401 - Unathorized not prompting for loginSet custom 401 error view in Windows Authentication mode for MVC application.NET MVC Authentication - Forms + Windows AuthenticationHow to restrict access to groups and execute code as user?Basic Authentication: IE 11 Does Not Prompt for Credentials - Chrome and FF DoWhy does windows authentication prompting credentials popupWindows Authentication or Impersonation problem by for MVC 5, IIS 8, Server 2012 R2
Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?
Fourth person (in Slavey language)
What wound would be of little consequence to a biped but terrible for a quadruped?
Should I tell my boss the work he did was worthless
The bar has been raised
Word for a person who has no opinion about whether god exists
How do I deal with a powergamer in a game full of beginners in a school club?
Replacing Windows 7 security updates with anti-virus?
Examples of a statistic that is not independent of sample's distribution?
Why is Beresheet doing a only a one-way trip?
Low budget alien movie about the Earth being cooked
Offered promotion but I'm leaving. Should I tell?
What is the chance of making a successful appeal to dismissal decision from a PhD program after failing the qualifying exam in the 2nd attempt?
Do items de-spawn in Diablo?
Are babies of evil humanoid species inherently evil?
Why does the negative sign arise in this thermodynamic relation?
Virginia employer terminated employee and wants signing bonus returned
Single word request: Harming the benefactor
Make a transparent 448*448 image
Subset counting for even numbers
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
Logic. Truth of a negation
Algorithm to convert a fixed-length string to the smallest possible collision-free representation?
Who deserves to be first and second author? PhD student who collected data, research associate who wrote the paper or supervisor?
MVC 5 Prompt for Windows Authentication Only Once
2019 Community Moderator ElectionWhat are MVP and MVC and what is the difference?What is the difference between MVC and MVVM?How do I force windows authentication with local asp.net development server?ASP.NET MVC 401 - Unathorized not prompting for loginSet custom 401 error view in Windows Authentication mode for MVC application.NET MVC Authentication - Forms + Windows AuthenticationHow to restrict access to groups and execute code as user?Basic Authentication: IE 11 Does Not Prompt for Credentials - Chrome and FF DoWhy does windows authentication prompting credentials popupWindows Authentication or Impersonation problem by for MVC 5, IIS 8, Server 2012 R2
On a MVC 5 application, I have this in the Web.config:
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" />
<authentication mode="Windows" />
<authorization>
<deny users="?" />
<allow users="<list of authorized users>" />
</authorization>
</system.web>
The application correctly authenticates users from the specified list, but my issue is that it asks every single time that the page is refreshed, or navigated to. I want it to ask once and then remember the user as they navigate between pages on the application. How might I accomplish this?
iis model-view-controller
add a comment |
On a MVC 5 application, I have this in the Web.config:
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" />
<authentication mode="Windows" />
<authorization>
<deny users="?" />
<allow users="<list of authorized users>" />
</authorization>
</system.web>
The application correctly authenticates users from the specified list, but my issue is that it asks every single time that the page is refreshed, or navigated to. I want it to ask once and then remember the user as they navigate between pages on the application. How might I accomplish this?
iis model-view-controller
add a comment |
On a MVC 5 application, I have this in the Web.config:
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" />
<authentication mode="Windows" />
<authorization>
<deny users="?" />
<allow users="<list of authorized users>" />
</authorization>
</system.web>
The application correctly authenticates users from the specified list, but my issue is that it asks every single time that the page is refreshed, or navigated to. I want it to ask once and then remember the user as they navigate between pages on the application. How might I accomplish this?
iis model-view-controller
On a MVC 5 application, I have this in the Web.config:
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.6.1" />
<authentication mode="Windows" />
<authorization>
<deny users="?" />
<allow users="<list of authorized users>" />
</authorization>
</system.web>
The application correctly authenticates users from the specified list, but my issue is that it asks every single time that the page is refreshed, or navigated to. I want it to ask once and then remember the user as they navigate between pages on the application. How might I accomplish this?
iis model-view-controller
iis model-view-controller
asked Mar 6 at 17:52
Tim MorrisTim Morris
175
175
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
As far as I know, storing memebr in for windows authentication is not related with the IIS setting. This is related with the Browser setting. I guess you may disable the auto submission of windows credentials by browsers.
For IE or Chrome(Chrome browser uses system settings which are managed using Internet Explorer):
Notice: You should add the url in the intranet as below image shows:
1.Navigate through Menu bar to Tools -> Internet Options -> Security
2.Select Local Intranet and Click on "Custom Level" button
3.Scroll to bottom of the window to User Authentication section, select "automatic logon only in intranet zone"
For firefox:
1.Start Firefox
2.In the address bar, type about:config. At the prompt that warns to proceed with caution, agree to continue.
3.After the config page loads, in the filter box type: network.automatic. You should see a search result of network.automatic-ntlm-auth.trusted-uris
4.Modify network.automatic-ntlm-auth.trusted-uris by double-clicking the row, and then enter https://your_SecureAuth_FQDN.com; Multiple sites can be added by comma delimiting them, as in this example: https://your_SecureAuth_FQDN.com, https://www.replacewithyourintranetsite.com
5.Click "OK" and close Firefox
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029358%2fmvc-5-prompt-for-windows-authentication-only-once%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As far as I know, storing memebr in for windows authentication is not related with the IIS setting. This is related with the Browser setting. I guess you may disable the auto submission of windows credentials by browsers.
For IE or Chrome(Chrome browser uses system settings which are managed using Internet Explorer):
Notice: You should add the url in the intranet as below image shows:
1.Navigate through Menu bar to Tools -> Internet Options -> Security
2.Select Local Intranet and Click on "Custom Level" button
3.Scroll to bottom of the window to User Authentication section, select "automatic logon only in intranet zone"
For firefox:
1.Start Firefox
2.In the address bar, type about:config. At the prompt that warns to proceed with caution, agree to continue.
3.After the config page loads, in the filter box type: network.automatic. You should see a search result of network.automatic-ntlm-auth.trusted-uris
4.Modify network.automatic-ntlm-auth.trusted-uris by double-clicking the row, and then enter https://your_SecureAuth_FQDN.com; Multiple sites can be added by comma delimiting them, as in this example: https://your_SecureAuth_FQDN.com, https://www.replacewithyourintranetsite.com
5.Click "OK" and close Firefox
add a comment |
As far as I know, storing memebr in for windows authentication is not related with the IIS setting. This is related with the Browser setting. I guess you may disable the auto submission of windows credentials by browsers.
For IE or Chrome(Chrome browser uses system settings which are managed using Internet Explorer):
Notice: You should add the url in the intranet as below image shows:
1.Navigate through Menu bar to Tools -> Internet Options -> Security
2.Select Local Intranet and Click on "Custom Level" button
3.Scroll to bottom of the window to User Authentication section, select "automatic logon only in intranet zone"
For firefox:
1.Start Firefox
2.In the address bar, type about:config. At the prompt that warns to proceed with caution, agree to continue.
3.After the config page loads, in the filter box type: network.automatic. You should see a search result of network.automatic-ntlm-auth.trusted-uris
4.Modify network.automatic-ntlm-auth.trusted-uris by double-clicking the row, and then enter https://your_SecureAuth_FQDN.com; Multiple sites can be added by comma delimiting them, as in this example: https://your_SecureAuth_FQDN.com, https://www.replacewithyourintranetsite.com
5.Click "OK" and close Firefox
add a comment |
As far as I know, storing memebr in for windows authentication is not related with the IIS setting. This is related with the Browser setting. I guess you may disable the auto submission of windows credentials by browsers.
For IE or Chrome(Chrome browser uses system settings which are managed using Internet Explorer):
Notice: You should add the url in the intranet as below image shows:
1.Navigate through Menu bar to Tools -> Internet Options -> Security
2.Select Local Intranet and Click on "Custom Level" button
3.Scroll to bottom of the window to User Authentication section, select "automatic logon only in intranet zone"
For firefox:
1.Start Firefox
2.In the address bar, type about:config. At the prompt that warns to proceed with caution, agree to continue.
3.After the config page loads, in the filter box type: network.automatic. You should see a search result of network.automatic-ntlm-auth.trusted-uris
4.Modify network.automatic-ntlm-auth.trusted-uris by double-clicking the row, and then enter https://your_SecureAuth_FQDN.com; Multiple sites can be added by comma delimiting them, as in this example: https://your_SecureAuth_FQDN.com, https://www.replacewithyourintranetsite.com
5.Click "OK" and close Firefox
As far as I know, storing memebr in for windows authentication is not related with the IIS setting. This is related with the Browser setting. I guess you may disable the auto submission of windows credentials by browsers.
For IE or Chrome(Chrome browser uses system settings which are managed using Internet Explorer):
Notice: You should add the url in the intranet as below image shows:
1.Navigate through Menu bar to Tools -> Internet Options -> Security
2.Select Local Intranet and Click on "Custom Level" button
3.Scroll to bottom of the window to User Authentication section, select "automatic logon only in intranet zone"
For firefox:
1.Start Firefox
2.In the address bar, type about:config. At the prompt that warns to proceed with caution, agree to continue.
3.After the config page loads, in the filter box type: network.automatic. You should see a search result of network.automatic-ntlm-auth.trusted-uris
4.Modify network.automatic-ntlm-auth.trusted-uris by double-clicking the row, and then enter https://your_SecureAuth_FQDN.com; Multiple sites can be added by comma delimiting them, as in this example: https://your_SecureAuth_FQDN.com, https://www.replacewithyourintranetsite.com
5.Click "OK" and close Firefox
edited Mar 7 at 7:59
answered Mar 7 at 7:36
Brando ZhangBrando Zhang
6,5872726
6,5872726
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029358%2fmvc-5-prompt-for-windows-authentication-only-once%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown