Ahilmurugesan / socialite-apple-helper

Laravel Socialite Apple Login Helper to generate and manage Client Secret
13 stars 14 forks source link

JWT version #13

Open loranger opened 3 years ago

loranger commented 3 years ago

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 ?

loranger commented 3 years ago

I tried to install the helper first, then add the socialiteprovider, but the helper is automatically removed then:

...
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 1 update, 1 removal
  - Downloading lcobucci/clock (2.0.0)
  - Downloading socialiteproviders/manager (4.0.1)
  - Downloading lcobucci/jwt (4.1.4)
  - Downloading socialiteproviders/apple (5.0.2)
  - Removing ahilmurugesan/socialite-apple-helper (0.7.5)
  - Installing lcobucci/clock (2.0.0): Extracting archive
  - Installing socialiteproviders/manager (4.0.1): Extracting archive
  - Upgrading lcobucci/jwt (3.4.5 => 4.1.4): Extracting archive
...

Isn't it weird ?

baminc commented 3 years ago

For some reason the JWT depedency in Git for 0.7.5 is "lcobucci/jwt": "^4.1", but in the package it says "lcobucci/jwt": "^3.3",. I am running into the same issues and need JWT 4 for PHP8.0 Upgrade.