From 138f335af0e2336eacbe0b906c78c839174eb290 Mon Sep 17 00:00:00 2001 From: eelke Date: Sun, 15 Feb 2026 19:34:17 +0100 Subject: [PATCH] Within the openid spec there is no need to return data at realms/name. Removed placeholders. --- IdentityShroud.Api/Apis/RealmApi.cs | 16 ---------------- .../Services/EncryptionService.cs | 9 --------- 2 files changed, 25 deletions(-) diff --git a/IdentityShroud.Api/Apis/RealmApi.cs b/IdentityShroud.Api/Apis/RealmApi.cs index ea62361..d5e439b 100644 --- a/IdentityShroud.Api/Apis/RealmApi.cs +++ b/IdentityShroud.Api/Apis/RealmApi.cs @@ -29,7 +29,6 @@ public static class RealmApi var realmSlugGroup = realmsGroup.MapGroup("{slug}") .AddEndpointFilter(); - realmSlugGroup.MapGet("", GetRealmInfo); realmSlugGroup.MapGet(".well-known/openid-configuration", GetOpenIdConfiguration); var openidConnect = realmSlugGroup.MapGroup("openid-connect"); @@ -90,19 +89,4 @@ public static class RealmApi JwksUri = baseUri + "/openid-connect/jwks", }, AppJsonSerializerContext.Default.OpenIdConfiguration); } - - private static string GetRealmInfo() - { - return "Hello World!"; - - /* keycloak returns this - { - "realm": "mpluskassa", - "public_key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApYbLAeOLDEwzL4tEwuE2LfisOBXoQqWA9RdP3ph6muwF1ErfhiBSIB2JETKf7F1OsiF1/qnuh4uDfn0TO8bK3lSfHTlIHWShwaJ/UegS9ylobfIYXJsz0xmJK5ToFaSYa72D/Dyln7ROxudu8+zc70sz7bUKQ0/ktWRsiu76vY6Kr9+18PgaooPmb2QP8lS8IZEv+gW5SLqoMc1DfD8lsih1sdnQ8W65cBsNnenkWc97AF9cMR6rdD2tZfLAxEHKYaohAL9EsQsLic3P2f2UaqRTAOvgqyYE5hyJROt7Pyeyi8YSy7zXD12h2mc0mrSoA+u7s/GrOLcLoLLgEnRRVwIDAQAB", - "token-service": "https://iam.kassacloud.nl/auth/realms/mpluskassa/protocol/openid-connect", - "account-service": "https://iam.kassacloud.nl/auth/realms/mpluskassa/account", - "tokens-not-before": 0 - } - */ - } } \ No newline at end of file diff --git a/IdentityShroud.Core/Services/EncryptionService.cs b/IdentityShroud.Core/Services/EncryptionService.cs index 845f43e..24cdd18 100644 --- a/IdentityShroud.Core/Services/EncryptionService.cs +++ b/IdentityShroud.Core/Services/EncryptionService.cs @@ -10,15 +10,6 @@ public class EncryptionService : IEncryptionService { private readonly byte[] encryptionKey; - /// - /// For easier usage in - /// - /// Encryption key as base64, must be 32 bytes - // public EncryptionService(string keyBase64) - // { - // encryptionKey = Convert.FromBase64String(keyBase64); - // } - public EncryptionService(ISecretProvider secretProvider) { encryptionKey = Convert.FromBase64String(secretProvider.GetSecret("Master"));