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
This commit is contained in:
Dishan Sivakumaran 2023-09-18 07:39:55 +02:00 committed by GitHub
parent 9266f8f00b
commit e5083b62a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,8 @@ export class ProviderAppleComponent {
return (e) => { return (e) => {
const keyBase64 = e.target?.result; const keyBase64 = e.target?.result;
if (keyBase64 && typeof keyBase64 === 'string') { 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); this.privateKey?.setValue(cropped);
} }
}; };

View File

@ -35,7 +35,6 @@ import TestSetup from './_test_setup.mdx';
8. Add the redirect uri in the Return URLs 8. Add the redirect uri in the Return URLs
- {your-domain}/ui/login/login/externalidp/callback/form - {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` - 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) ![Apple Service](/img/guides/apple_service_create.png)