Repository navigation
Conversation
c477fa2 to
85369f7
Compare
There was a problem hiding this comment.
Great to see that somebody is implementing an apple identity provider in keycloak! After having tested your branch, I have some feedback on the AppleIdentityProvider class:
83aeb7e to
412492b
Compare
|
Hi, thank you for contributing this. We have been testing this provider for the last week, and found something interesting: It seems that Apples 'Login With Apple' only includes name/email on the first login done through their OpenID provider. Subsequent logins will not give out a name nor email. Do you have any thoughts on how to handle this for an AppleID provider? |
|
@esiqveland, you are right Apple only provide email/name on the first login if scopes are correctly set. If you don't ask these scopes at the first time, users need to remove the association between the account and the application. That is why the provider default scopes are email+mail. There is no other option to update refresh email/name as long as Apple does not provide a user endpoint. |
|
We would love to see this asap. SIWA is such a highly required feature for our Product but we cannot use it due to the fact keycloak cannot handle this. |
|
Any estimate on when this feature is going to be released? |
|
Any news on this ? Our app is currently blocked by Apple because we don't support SIWA.... We tried to negotiate but Apple is not answering anymore. |
|
@nicolasbenoist Exactly the same problem on our side. We need this feature ASAP and would be great if we can get at least an estimation on when its ready. |
|
If you haven't done it yet, take a look at this extension, for now we have solved with this: We had to make a further modification to be able to insert the text 'Sign in with Apple' on the button. Without this, Apple rejected |
|
Hi guys, any update/estimate on this? |
|
Still no progress on this. Too sad ;( |
|
@ebondu Any ETA about this? |
|
@SalahAdDin unfortunately, I have no feedback from keycloak team. |
How do you handle the lack of so method? |
|
To handle this lack, we renew the token each time instead of renewing the token if needed plus saving it to the db. It can be viewed as a possible optimization to save the token. |
|
@ebondu Sorry for the long time ... I would like to resume discussions. I noticed that you got a lot of feedback. I also noted that people mentioned about https://github.com/BenjaminFavre/keycloak-apple-social-identity-provider. Your implementation looks much more complete. Do you think is there anything we can borrow from there? I'll be testing locally and try running the provider in our CI. |
@stianst I agree that in that sense the current implementation is perfect and usable. I only wanted to provide another vision and, at least, expose a possible problem that could occur. Personally I would stay with the current aesthetic, perhaps just adjusting the background colors on the buttons so that they can be easily identified by users. |
With regards to styling and background colours, we just use PatternFly as the style and don't want to defer from that, but I do agree that the styling is not ideal as buttons don't really stand out as buttons. |
|
What is the current state of this PR? What needs to be done? |
@MarkusWendorf it looks like there's just some clean code/aesthetic changes that need to be approved, from what I am reading. Should be any day now, I suppose? SIWA for Keycloak would be a godsend for me as well. |
|
Yikes my previous comment aged very poorly. Saying "any day now" seems to bring bad karma. @pedroigor @ebondu is there anything else that needs to be done other than that change request? My deadlines are approaching and I'm almost tempted to just yolo-build this branch and use it instead of the official versions. |
|
@mihaipoenaru, to me there is nothing to change in the MR. The style/icon point was not relevant because anyone who wants to publish an app using the apple provider will have to customize the login page css to comply to Apple requirements. From my understanding, the last step was on KC team side (get apple credentials for their internal CI and test the provider). |
|
Thanks, @ebondu ! So if the KC team doesn't get it done soon, I should be fine with just building it on my own and publishing this branch's image to my corporate docker registry? |
|
@mihaipoenaru , FYI, there is already a keycloak extension for apple sign in: https://github.com/BenjaminFavre/keycloak-apple-social-identity-provider You can use it in the meanwhile, and no need to build your own custom keycloak distribution. |
|
@pedroigor @ebondu any update on where the testing is of this is with the KC team. Quite a lot of us patiently waiting for this to get into a release. |
Checking this page has become my new morning routine |
|
This might be interesting for some of you. I still hope that the keycloak team manages to release their own version of SIWA, which should be more mature @pedroigor |
|
Is this feature still planned by the Keycloack team? Personally I'm currently evaluating Keycloack as an alternative to Firebase Auth for an already existing mobile app. |
@ebondu, @pedroigor asked f 10BC8 or one change on it, can you check it? |
|
Apple Login is mandatory to any IOS project, so we desperately needs native apple IDP support. |
|
We discussed this several times. For me, it is more than proven the interest in this broker and its readiness to get merged. The problem though is testing. That is the only reason. @stianst Based on what we discussed, we can't afford to merge it without test coverage. One of the suggestions here is to offer this broker as a official extension. Wdyt? |
|
@pedroigor if we can get a user created so we can automate testing I'd say we can move ahead with this one. Ideal would probably to start running the SocialTests with GA instead of the internal pipeline, to make it easier to maintain and allow the community to see test results. |
|
@stianst What is blocking this one is exactly the possibility to have an apple identity set to test the broker. From the discussions herein, it seems Apple Developer Program is paid. |
|
@pedroigor read through all the comments so far. Options I see:
|
|
@stianst Thanks for the review. An important point to me is that the SIWA requires the 2FA (even with a sandbox account) so I don't think that will be compatible with automated tests. Even by paying the 99$ to get your own account/conf, you will have to finalize the auth by typing a SMS code. Does Apple is the only one to require 2FA ? If not, how do you test 2FA with other providers ? As explain before, It is OK to me to share a working |
Missed the part around 2FA, but that is a real PITA for sure, as Apple has then basically made it impossible for anyone to continuously test the integration. Have you tried to reach out to Apple around this? |
|
As we are not getting anywhere around continuous testing integration, and also Keycloak developers do not have access to Apple developer accounts, we are not able to merge this PR. From past discussions I don't see how this will change. I'm sorry to disappoint everyone that where hoping for this to be merged, and also sorry that it taken so long for us to come to a conclusion. It is not all bad news though. A better path forward is a community maintained extension, and here there seems to already be a great extension available: https://github.com/BenjaminFavre/keycloak-apple-social-identity-provider I have just tested this one out (as much as I could without an Apple account) and it looks like it's working just fine on the Quarkus distribution. |
|
I've opened an issue BenjaminFavre/keycloak-apple-social-identity-provider#29 to request this extension to be listed on https://www.keycloak.org/extensions.html. Going forward we will also put some effort into cleaning up how extensions are advertised on keycloak.org, and make it a lot more prominent. |
|
The mentioned extension doesn't look very well maintained. That's really disappointing development. Is there any plan for keycloak to somehow close the increasing gap towards services like Auth0 which have better browser and mobile app tooling, better documentation, more built in providers and so on? |
Here's an alternative extension: If neither of these fits are good enough, then why not fork (or start from scratch) and provide a better maintained extension? We would love to provide a better story around extensions and can start thinking about how we can achieve it. Including how to test extensions, how they are delivered/installed, etc. We could even consider pulling some "officially" blessed extensions into the Keycloak organization assuming we have sufficient maintainers on the individual extensions.
In terms of more built in providers, why do they have to be built-in? Why wouldn't a marketplace/community-maintained extensions fit the bill perfectly here? For your other comments that is a bit out of the scope of this PRs, but for sure we would also like to see improvements in these areas. Suggest improvements, contribute improvements, build a community extension/project, etc.. This is a open source community after all, so can we not work on improving these things together? |
|
From what I saw, lot of community extensions are only maintained by few peoples with many versions doing almost the same thing. For companies that are expecting quality, it is more relavant to rely on the official keycloak community rather than testing all existing extensions and picking one hopping someone will maintained it. Moreover extensions to enable SIWA would not have been developed if an official one existed. @stianst I understand your CI & automatic E2E tests requirements so I can't blame you to reject the PR but I guess the problem will be the same with other extensions and/or any providers working with 2FA. If unit tests are not enough in that cases, you are right the SIWA can't be merged. I will continue to maintain the provider on my side because it is already working in production here (on the latest quarkus version) but I am not sure to provide it as an extension because of existing ones and because I already lost a lot time trying to share it with the official community. |
But it seems they are not interested on make this provider functional. |
[KEYCLOAK-13171] - Add Apple identity provider