Download the PHP package myshell/apple-laravel-authorization-code without Composer
On this page you can find all versions of the php package myshell/apple-laravel-authorization-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download myshell/apple-laravel-authorization-code
More information about myshell/apple-laravel-authorization-code
Files in myshell/apple-laravel-authorization-code
Package apple-laravel-authorization-code
Short Description Get User Data with the result code of a apple sign in button
License MIT
Informations about the package apple-laravel-authorization-code
Validate Apple User Code with Laravel
1. Installation
Add Service Provider in config/app.php
2. Configuration Setup
You will need to add an entry to the services configuration file so that after config files are cached for usage in production environment (Laravel command artisan config:cache
) all config is still available.
To set up the required environment variables you can use the following artisan command which comes with this package.
The command will prompt you the required values.You need to provide the following keys.
- Team_ID
- Key_ID
- Client_ID
- Key ( file name of p8 auth file, located inside storage/app/ ) Example: AuthKey_SAMPKEY.p8
- Token Refresh Interval ( in days )
Client Secret will be automatically generated and added to the .env file by using the above command.
The expiration time registered claim key, the value of which must not be greater than 15777000 (6 months in seconds) from the Current Unix Time on the server. Sign in with Apple Client Secret expiration time cannot be greater than six months. Hence it is advisible to refresh the Client Secret atleast once in six months after creation. You can adjust the Token Refresh Interval. There is a scheduled task which comes along with this package which will ensure that the Client Token is refreshed automatically. Please do ensure that you have enabled Task Scheduling
To manually refresh the Client Secret, please run the following command
3. Use
Controller.
Response getUserData()
All versions of apple-laravel-authorization-code with dependencies
lcobucci/jwt Version ^3.3
firebase/php-jwt Version ^5.0
ext-curl Version *