From 2ccf17c6894bb8c829c6cd4ff8c2961acc718f40 Mon Sep 17 00:00:00 2001 From: HPCesia Date: Mon, 18 Nov 2024 23:02:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E7=BD=AE=E5=85=AC=E7=A7=81=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../4.38.17-lite/data/configuration.yml | 8 ++++++ .../data/secrets/oidc/jwks/rsa.2048.key | 28 +++++++++++++++++++ .../data/secrets/oidc/jwks/rsa.2048.key.pub | 9 ++++++ 3 files changed, 45 insertions(+) create mode 100644 apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key create mode 100644 apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key.pub diff --git a/apps/authelia/4.38.17-lite/data/configuration.yml b/apps/authelia/4.38.17-lite/data/configuration.yml index b8423c0..3e1ad0a 100644 --- a/apps/authelia/4.38.17-lite/data/configuration.yml +++ b/apps/authelia/4.38.17-lite/data/configuration.yml @@ -13,6 +13,14 @@ identity_validation: reset_password: jwt_algorithm: "HS512" +identity_providers: + oidc: + jwks: + - key_id: "example" + algorithm: "RS256" + use: "sig" + key: {{ secret "/config/secrets/oidc/jwks/rsa.2048.key" | mindent 10 "|" | msquote }} + session: cookies: - name: "authelia_session" diff --git a/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key b/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key new file mode 100644 index 0000000..0be3830 --- /dev/null +++ b/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC3HSoRzZVj14+q +tpV8rshNYv5Cwf7TdBrf+xRhy345GQWqHTp3w+YhTopgIfpprbJKx3P54nq9z8uV +JFajW8DEK5aZXXXQcEGO3GKTn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JP5aCuwf3U9bZcr +FqmLRD2g1uDEQTeWo2IXJI+qzLgS904eVGHriWDA6MpgQBSKv5wJTykeSeMCgYAE +0tYig0GEczmkmGxWVvt9TC7zHJTuEY3Te2QWrfz0r6GIGNhohqlar+p6tPVU6PaC +ZrlD23w8nmFOSWeigQ6Cg5SXN1S9hBUMHfX1hu5HFC/908eHy1F9J9AnpiS/vJbh +/ZLQpZycWmNZUxxJGVL810UFLHDgst80Ryvd7MOWZQKBgFsd+s4hXrp4KNFogHoC +JHM7gIsRMtHY46yXqGeDPdzS1vhOWmcEyDgGrYrDkH16evc6dumjVaYDanSbbigZ +n3eSjiHLlKRBuRx9uePd8HzHG3tFrdPq2eHN2wmcfl3ukakHJ6MzlZn1G9vifNKc +hE8f6upznVDdQj7k95MWrey2 +-----END PRIVATE KEY----- diff --git a/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key.pub b/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key.pub new file mode 100644 index 0000000..c8ac34a --- /dev/null +++ b/apps/authelia/4.38.17-lite/data/secrets/oidc/jwks/rsa.2048.key.pub @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtx0qEc2VY9ePqraVfK7I +TWL+QsH+03Qa3/sUYct+ORkFqh06d8PmIU6KYCH6aa2ySsdz+eJ6vc/LlSRWo1vA +xCuWmV110HBBjtxik5zsqqqh6V5Id0vquiDnmnPJQlWEHFxCABj4rLfi4pwV813H +LEtIMIsiAmgdFhT8tgEYN9gUsG02j8+eEffcHATSN2qIzrWJwhCe4ECxdBWUUK2B +BPMIe4n9Gi/V2N4oWmmpfVLs/yQUoqf0mSgdqofEmY9y04r9AYCZaP57sS7dx5/o +TAYWg8Oxyhd871BfSSA87iBE6wzd56eBkqZxZkgUMg7uB+w8sZBvsHZI37vTHl1N +hwIDAQAB +-----END PUBLIC KEY----- \ No newline at end of file