BenjaminFavre / keycloak-apple-social-identity-provider

Apple Social Identity Provider for Keycloak
Apache License 2.0
108 stars 53 forks source link

unable to integrate apple in keycloak #18

Open Karthik1152 opened 2 years ago

Karthik1152 commented 2 years ago

Failed to make identity provider oauth callback: java.lang.IllegalArgumentException: Illegal base64 character 2e at java.base/java.util.Base64$Decoder.decode0(Base64.java:743) at java.base/java.util.Base64$Decoder.decode(Base64.java:535) at java.base/java.util.Base64$Decoder.decode(Base64.java:558)

genewoo commented 2 years ago

I met the same issue as this issue described.

genewoo commented 2 years ago

I thought you might copy the return char into the secret

Abhishek-Acme commented 2 years ago

You are missing the step 2 from the readme file

Karthik1152 commented 2 years ago

step 2 means

You are missing the step 2 from the readme file

Do you mean installing the JAR I installed the jar file. after that only I got the apple value in keycloak oidc dropdown. then I copied the client secret , team id, and key id available in the apple developer console . may I know which step i missed

Abhishek-Acme commented 2 years ago

No I mean this Fill Client secret with the base 64 content of your private key file (trim delimiters and new lines).

e.g., if your private key is:

-----BEGIN PRIVATE KEY----- Rp6vMlHPYTHnyucsPvFk8gTzdYtTueMbmVznAtkUKhD9HPcI3bLKDrr0b2mNJLfS tsyvhbpyMUIpaffKQcY7IUuM20ecYBjiyjkLuX5eDQUInWUINfCCyXQnNdSU4K1j 2z4IJrvacQz1PFrL0Tj4lt72jSxikzMBHWsGdFyT90bx0R26GR4YCudKxltozVrK PsUC1cdy -----END PRIVATE KEY----- then you should set Client secret with:

Rp6vMlHPYTHnyucsPvFk8gTzdYtTueMbmVznAtkUKhD9HPcI3bLKDrr0b2mNJLfStsyvhbpyMUIpaffKQcY7IUuM20ecYBjiy

I had a similar issue and it fixed after I properly formatted the client secret.