Hello. Can anyone give a help hand to deal with so...
# support
v
Hello. Can anyone give a help hand to deal with solidus_social extension? (fighting with :apple provider)
j
I don’t know anything about that specific provider, though I am familiar with the extension. Can you be more specific about the issue you’re facing?
v
I am trying to configure sign in through Apple Id at development stage so far. I've added omniauth-apple gem to Gemfile, started to configure solidus_social initializer. There was the first stuck: how to configure "other" provider properly? Cause Readme for solidus_social shows this
Copy code
config.providers = {
    # The configuration key has to match your omniauth strategy.
    linkedin: {
      api_key: ENV['LINKEDIN_API_KEY'],
      api_secret: ENV['LINKEDIN_API_SECRET'],
    }
and Readme for omniauth-apple shows this
Copy code
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :apple, ENV['CLIENT_ID'], '',
           {
             scope: 'email name',
             team_id: ENV['TEAM_ID'],
             key_id: ENV['KEY_ID'],
             pem: ENV['PRIVATE_KEY']
           }
end
j
Sorry, I'm not familiar enough with how Apple stuff works. I know the private keys and stuff always makes it a pain in development for Apple pay and stuff.
v
Thing is, i've already managed to reach callback page after successful sign in via AppleId, but still can't sign in at my site. I see in backtrace that just after (successful) access token check, code flow goes to versioncake gem inside & then again to access token check, but now it forgets about configuration from initializer & just fails cause of that.
I almost sure that issue is in order of middleware execution. I'm looking for a way to correct that through proper omniauth-apple configuration. There is no problem in using solidus_social with authentication via Google or Facebook.