ahilmurugesan / socialite-apple-helper Goto Github PK
View Code? Open in Web Editor NEWLaravel Socialite Apple Login Helper to generate and manage Client Secret
Laravel Socialite Apple Login Helper to generate and manage Client Secret
Hello,
I try to install this helper, but composer fails, due to a old JWT version :
composer require ahilmurugesan/socialite-apple-helper
Using version ^0.7.5 for ahilmurugesan/socialite-apple-helper
./composer.json has been updated
Running composer update ahilmurugesan/socialite-apple-helper
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires ahilmurugesan/socialite-apple-helper ^0.7.5 -> satisfiable by ahilmurugesan/socialite-apple-helper[0.7.5].
- ahilmurugesan/socialite-apple-helper 0.7.5 requires lcobucci/jwt ^3.3 -> found lcobucci/jwt[3.3.0, ..., 3.4.x-dev] but the package is fixed to 4.1.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I did a composer up
, then a composer clear-cache
but the issue remains.
Did I miss something important ?
Hello, I found that the condition in line 22 of the Kernel.php file (
socialite-apple-helper/Console/Kernel.php
Line 22 in 03b1b8f
return ((config('services.apple.refresh_token_interval_days') * 86400) + config('services.apple.client_secret_updated_at') < time());
File not found in the local driver path
Edit: I solved that. The file was placed incorrectly.
Ahoi
I just upgraded everything to fool around with PHP 8 and I jumped into a dependency clash to fully be able to upgrade.
The Helper requires lcobucci/jwt
in version ^3.3, but PHP 8 support was only added to ^4.0 (https://github.com/lcobucci/jwt/releases/tag/4.0.0).
Would you be able to apply that dependency allowance/requirement, too?
Thanks a lot in advance
Hey! Thank you so much for this very useful tool.
I've managed to get this all working, however, I have stumbled upon a small issue.
I was setting up a cron to run the php artisan socialite:apple --refresh
command as per your advice but it does fail because I run an application on Heroku so there is no .env
file. Only env varaibles.
I was wondering if you have any advice how to get around this or possible fix?
Thank so much,
All the best.
After installing this package in my laravel project. I got user details form apple token. but in this response, I got the user name became "null" and email id does not match with user email id (might be its encrypted email id). so please can help me with how to get a proper user email id and user name.
When running php artisan socialite:apple to set up configuration:
Enter Team Id :
> MC4R275KJ6
Enter Key Id :
> WRPZ36BKQU
Enter Client Id :
> com.storycharmed.signin
Enter Auth Key [AuthKey_WRPZ36BKQU.p8]:
>
Enter Redirect Uri [https://www.lunatic-pandora.com/socialite/apple/callback]:
>
Enter client secret refresh interval(days) [180]:
>
In ValidatesAttributes.php line 1543:
preg_match(): Compilation failed: invalid range in character class at offset 1828
@vonec, I try to install the socialite-apple-helper package in laravel 5.4. but it's showing error for while installation
Note: The latest version of laravel everything working fine. might be it's lower version issue so please suggestions something to fix the issue in laravel 5.4
I installed this package 6-month ago. now If I try to run "php artisan socialite:apple " is a command in my project cmd line. I got this error message on my cmd screen. Please give the solution asap now.
"It was not possible to parse your key, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line"
Last step when we need to pit refresh interval
"Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.