Giter Site home page Giter Site logo

Comments (7)

jeffsawatzky avatar jeffsawatzky commented on August 28, 2024 2

This could be because you have already authorized the app. Apple only sends the user object the first time the user authorizes the app. Subsequent authorizations don't send the user object.

https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple#3331292

The user object is what contains the first/last name.

Also, the id_token that apple gives out never seems to contain the first/name info, so that means the only time you can get this is the first time you authorize the app.

from omniauth-apple.

sdhull avatar sdhull commented on August 28, 2024 2

We seem to have observed an issue where if you authenticate with TouchID, then everything in the OmniAuth hash is nil (email, first name, last name), but if you authenticate with your Apple email & pw, everything is populated. We're still trying to figure it out, any help would be appreciated.

from omniauth-apple.

sebfie avatar sebfie commented on August 28, 2024

+1

from omniauth-apple.

willc0de4food avatar willc0de4food commented on August 28, 2024

I am aware of this and tested multiple times deauthorize good the app. Never got the name.

from omniauth-apple.

rickstergg avatar rickstergg commented on August 28, 2024

@sdhull , same thread as you, I'll share my findings if I come up with any, I had tried the scope encoding commit that references this issue, but we're still seeing the email coming up as null, will report back with any news!

from omniauth-apple.

JonathanVeg avatar JonathanVeg commented on August 28, 2024

I'm receiving the name as user e-mail. Looking in the gem it sets the name with user's email when the name do not came from apple validation.

I'm receiving it even in the first access (after removing the app from my account, having to accept and decide if I'll share my email or not).

Any solution? Thanks.

from omniauth-apple.

nov avatar nov commented on August 28, 2024

hope this merged, or do the same in your app.
https://gitlab.com/oauth-xx/oauth2/-/merge_requests/633

from omniauth-apple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.