Skip to content

Commit aeb5980

Browse files
author
PJ Evans
authored
Updated all AzureAD and AzureADB2C views to give ids to all taged html objects. Again, for easy css use. All views are now updated and named appropiately for which auth system being used. (#18910)
1 parent d7bdfaf commit aeb5980

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
}
66

77
<header>
8-
<h1 class="text-danger">@ViewData["Title"]</h1>
9-
<p class="text-danger">You do not have access to this resource.</p>
10-
</header>
8+
<h1 id="AzureADAccessDeniedTitle" class="text-danger">@ViewData["Title"]</h1>
9+
<p id="AzureADAccessDeniedText" class="text-danger">You do not have access to this resource.</p>
10+
</header>

src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
ViewData["Title"] = "Error";
55
}
66

7-
<h1 class="text-danger">Error.</h1>
8-
<h2 class="text-danger">An error occurred while processing your request.</h2>
7+
<h1 id="AzureADErrorTitle" class="text-danger">Error.</h1>
8+
<h2 id="AzureADErrorSub" class="text-danger">An error occurred while processing your request.</h2>
99

1010
@if (Model.ShowRequestId)
1111
{
12-
<p>
12+
<p id="AzureADErrorRequestId">
1313
<strong>Request ID:</strong> <code>@Model.RequestId</code>
1414
</p>
1515
}
1616

17-
<h3>Development Mode</h3>
18-
<p>
17+
<h3 id="AzureADErrorDevNoticeTitle">Development Mode</h3>
18+
<p id="AzureADErrorDevNoticeText1">
1919
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
2020
</p>
21-
<p>
21+
<p id="AzureADErrorDevNoticeText2">
2222
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
23-
</p>
23+
</p>

src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ViewData["Title"] = "Signed out";
55
}
66

7-
<h2 id="AzureADB2CSignoutTitle">@ViewData["Title"]</h2>
8-
<p id="AzureADB2CSignoutText">
7+
<h2 id="AzureADSignedOutTitle">@ViewData["Title"]</h2>
8+
<p id="AzureADSignedOutText">
99
You have successfully signed out.
1010
</p>

src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
}
66

77
<header>
8-
<h1 class="text-danger">@ViewData["Title"]</h1>
9-
<p class="text-danger">You do not have access to this resource.</p>
10-
</header>
8+
<h1 id="AzureADB2CAccessDeniedTitle" class="text-danger">@ViewData["Title"]</h1>
9+
<p id="AzureADB2CAccessDeniedText" class="text-danger">You do not have access to this resource.</p>
10+
</header>

src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
ViewData["Title"] = "Error";
55
}
66

7-
<h1 class="text-danger">Error.</h1>
8-
<h2 class="text-danger">An error occurred while processing your request.</h2>
7+
<h1 id="AzureADB2CErrorTitle" class="text-danger">Error.</h1>
8+
<h2 id="AzureADB2CErrorSub" class="text-danger">An error occurred while processing your request.</h2>
99

1010
@if (Model.ShowRequestId)
1111
{
12-
<p>
12+
<p id="AzureADB2CRequestId">
1313
<strong>Request ID:</strong> <code>@Model.RequestId</code>
1414
</p>
1515
}
1616

17-
<h3>Development Mode</h3>
18-
<p>
17+
<h3 id="AzureADB2CErrorDevNoticeTitle">Development Mode</h3>
18+
<p id="AzureADB2CErrorDevNoticeText1">
1919
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
2020
</p>
21-
<p>
21+
<p id="AzureADB2CErrorDevNoticeText2">
2222
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
23-
</p>
23+
</p>

src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ViewData["Title"] = "Signed out";
55
}
66

7-
<h2>@ViewData["Title"]</h2>
8-
<p>
7+
<h2 id="AzureADB2CSignedOutTitle">@ViewData["Title"]</h2>
8+
<p id="AzureADB2CSignedOutText">
99
You have successfully signed out.
10-
</p>
10+
</p>

0 commit comments

Comments
 (0)