Skip to content

Commit a6211a9

Browse files
committed
Rename login client to interactive.implicit
- Follow naming schemes, which moves the login to the right grouping on the start page. - Keep the old client id around for some time to not break existing demos
1 parent 8b779e7 commit a6211a9

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/Config.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,19 @@ public class Config
403403

404404
// oidc login only
405405
new Client
406+
{
407+
ClientId = "interactive.implicit",
408+
409+
RedirectUris = { "https://notused" },
410+
PostLogoutRedirectUris = { "https://notused" },
411+
412+
AllowedGrantTypes = GrantTypes.Implicit,
413+
AllowedScopes = AllIdentityScopes,
414+
},
415+
416+
// oidc login only - legacy client name. Keep until end of 2026
417+
// to not break existing demos.
418+
new Client
406419
{
407420
ClientId = "login",
408421

src/Pages/Index.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@
168168
</p>
169169

170170
<div id="accordion" class="mb-3">
171-
@foreach (var clients in Config.Clients.GroupBy(it => it.ClientId.Split('.', StringSplitOptions.TrimEntries).First()))
171+
@*
172+
We have a legacy login client that has been used in various demos. It's now renamed to interactive.implicit, but we need to have the
173+
old entry around for some time, but don't want to show it any more. The login client and the .Where(g => g.Key != "login") can be removed after 2026.
174+
*@
175+
@foreach (var clients in Config.Clients.GroupBy(it => it.ClientId.Split('.', StringSplitOptions.TrimEntries).First()).Where(g => g.Key != "login"))
172176
{
173177
<div class="card mb-2">
174178
<div id="[email protected]" class="card-header bg-light shadow-sm border-0">

0 commit comments

Comments
 (0)