Skip to content

Apple auth not fetching first name and last name even with the name scope #616

@Erol

Description

@Erol

It seems like the first name and last name is not being fetched for Apple Sign-In even if the name scope has been specified. I tried looking at the code it mentioned:

// Apple doesn't seem to provide a user profile endpoint like all the other providers do.
// Therefore this will return a User with the unique identifier obtained through authorization
// as the only identifying attribute.
// A full name and email can be obtained from the form post response (parameter 'user')
// to the redirect page following authentication, if the name and email scopes are requested.
// Additionally, if the response type is form_post and the email scope is requested, the email
// will be encoded into the ID token in the email claim.

Since CompleteUserAuth has access to the request, I was thinking that fetching the names should be possible, though there would be a change on the method signature of FetchUser.

Just wondering if the omission was more of a limitation or was this intentional? If it's a limitation with the current implementation I'd like to take a stab at implementing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions