Skip to content

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Feb 10, 2025

Add Sign in with Apple example
This is a draft at the moment. It is not complete at all. It does the core work of getting an access token from Apple and adding users to a database.
Most of the work seems to be setting up your Apple account correctly so this example is going to need a fairly long README

@adam-fowler adam-fowler marked this pull request as draft February 10, 2025 16:31
@tib
Copy link
Contributor

tib commented May 4, 2025

FYI: https://theswiftdev.com/sign-in-with-apple-using-vapor-4/ (maybe it helps with the readme)

@adam-fowler
Copy link
Member Author

FYI: https://theswiftdev.com/sign-in-with-apple-using-vapor-4/ (maybe it helps with the readme)

Yeah I used your article to help build the example.
One thing I have an issue with at the moment is when we get the AppleIdentityToken we go back to the Apple servers to create an access token that is longer living. This token is then returned as the body of the webpage (which isn't ideal). I guess you could return this in a cookie.

If we're restricted to just using whatever we return to access your website you could also just create your own session token, and skip getting the access token from Apple. I'm just trying to work out what would be considered best practice..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants