5 |
6 |
Logout
7 |
Would you like to logout of IdentityServer?
8 |
9 |
10 |
17 |
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Account/Logout/LoggedOut.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model authn.Pages.Logout.LoggedOut
3 |
4 |
5 |
6 | Logout
7 | You are now logged out
8 |
9 |
10 | @if (Model.View.PostLogoutRedirectUri != null)
11 | {
12 |
13 | Click
here to return to the
14 |
@Model.View.ClientName application.
15 |
16 | }
17 |
18 | @if (Model.View.SignOutIframeUrl != null)
19 | {
20 |
21 | }
22 |
23 |
24 | @section scripts
25 | {
26 | @if (Model.View.AutomaticRedirectAfterSignOut)
27 | {
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Account/Logout/LoggedOutViewModel.cs:
--------------------------------------------------------------------------------
1 |
2 | // Copyright (c) Duende Software. All rights reserved.
3 | // See LICENSE in the project root for license information.
4 |
5 |
6 | namespace authn.Pages.Logout;
7 |
8 | public class LoggedOutViewModel
9 | {
10 | public string PostLogoutRedirectUri { get; set; }
11 | public string ClientName { get; set; }
12 | public string SignOutIframeUrl { get; set; }
13 | public bool AutomaticRedirectAfterSignOut { get; set; }
14 | }
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Account/Logout/LogoutOptions.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace authn.Pages.Logout;
3 |
4 | public class LogoutOptions
5 | {
6 | public static bool ShowLogoutPrompt = true;
7 | public static bool AutomaticRedirectAfterSignOut = true;
8 | }
9 |
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Ciba/ConsentOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Duende Software. All rights reserved.
2 | // See LICENSE in the project root for license information.
3 |
4 |
5 | namespace authn.Pages.Ciba;
6 |
7 | public class ConsentOptions
8 | {
9 | public static bool EnableOfflineAccess = true;
10 | public static string OfflineAccessDisplayName = "Offline Access";
11 | public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
12 |
13 | public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
14 | public static readonly string InvalidSelectionErrorMessage = "Invalid selection";
15 | }
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Ciba/Index.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model authn.Pages.Ciba.IndexModel
3 | @{
4 | }
5 |
6 |
7 |
8 | @if (Model.LoginRequest.Client.LogoUri != null)
9 | {
10 |
11 | }
12 |
13 | @Model.LoginRequest.Client.ClientName
14 | is requesting your permission
15 |
16 |
17 |
18 | Verify that this identifier matches what the client is displaying:
19 | @Model.LoginRequest.BindingMessage
20 |
21 |
22 |
23 | Do you wish to continue?
24 |
25 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/AuthenticationService/Pages/Ciba/InputModel.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Duende Software. All rights reserved.
2 | // See LICENSE in the project root for license information.
3 |
4 | namespace authn.Pages.Ciba;
5 |
6 | public class InputModel
7 | {
8 | public string Button { get; set; }
9 | public IEnumerable