From e5083b62a6c5b8c07a5db11f13c575247356551c Mon Sep 17 00:00:00 2001 From: Dishan Sivakumaran <55233123+dsiscout@users.noreply.github.com> Date: Mon, 18 Sep 2023 07:39:55 +0200 Subject: [PATCH] fix: apple idp configuration (#6575) * docs(apple-idp): remove client id and secret from documentation, as it is not needed * fix(apple-idp): fix reading of key file by using content type of file --- .../providers/provider-apple/provider-apple.component.ts | 3 ++- docs/docs/guides/integrate/identity-providers/apple.mdx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/console/src/app/modules/providers/provider-apple/provider-apple.component.ts b/console/src/app/modules/providers/provider-apple/provider-apple.component.ts index b86204309d..443d586c47 100644 --- a/console/src/app/modules/providers/provider-apple/provider-apple.component.ts +++ b/console/src/app/modules/providers/provider-apple/provider-apple.component.ts @@ -246,7 +246,8 @@ export class ProviderAppleComponent { return (e) => { const keyBase64 = e.target?.result; if (keyBase64 && typeof keyBase64 === 'string') { - const cropped = keyBase64.replace('data:application/octet-stream;base64,', ''); + const contentType = file.type || 'application/octet-stream'; + const cropped = keyBase64.replace(`data:${contentType};base64,`, ''); this.privateKey?.setValue(cropped); } }; diff --git a/docs/docs/guides/integrate/identity-providers/apple.mdx b/docs/docs/guides/integrate/identity-providers/apple.mdx index cec4a76a70..14ee7ebcae 100644 --- a/docs/docs/guides/integrate/identity-providers/apple.mdx +++ b/docs/docs/guides/integrate/identity-providers/apple.mdx @@ -35,7 +35,6 @@ import TestSetup from './_test_setup.mdx'; 8. Add the redirect uri in the Return URLs - {your-domain}/ui/login/login/externalidp/callback/form - Example redirect url for the domain `https://acme-gzoe4x.zitadel.cloud` would look like this: `https://acme-gzoe4x.zitadel.cloud/ui/login/login/externalidp/callback/form` -9. Save the Client ID and Client secret ![Apple Service](/img/guides/apple_service_create.png)