Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new provider Passage #418

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Add new provider Passage #418

merged 1 commit into from
Oct 24, 2023

Conversation

malteschlueter
Copy link
Contributor

I missed an implementation of Passage from 1Password that supports Passkeys.

So I've implemented it myself.

Feel free to send me some feedback also for my first own package malteschlueter/oauth2-passage package.

What minimum PHP version should the malteschlueter/oauth2-passage package support? The same as this package >=7.4?

@malteschlueter
Copy link
Contributor Author

I don't know why, but a PHPUnit test for PHP 8.2 fails because of a missing dependency.
Error: Class "Symfony\Component\Translation\DependencyInjection\DataCollectorTranslatorPass" not found

Any ideas?

@bocharsky-bw
Copy link
Member

The failed tests may be unrelated and probably should be fixed in a separate PR, need to double-check if it also fails on master, but definitely needs to be fixed.

What minimum PHP version should the malteschlueter/oauth2-passage package support? The same as this package >=7.4?

About this, mu thoughts are no. 7.4 is EOL now, as also 8.0 will EOL very soon. I think if you support 8.1-8.2 - that's perfect to start.

path: ./src/Client/Provider
-
message: '#Call to method [a-zA-Z0-9\\_]+\(\) on an unknown class League\\OAuth2\\Client\\Provider\\[a-zA-Z0-9\\_]+\.#'
path: ./src/Client/Provider
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, was it required? PHPStan fails without this? IIRC we didn't have problems with it before, but probably PHPStan recent updates start causing it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPStan shows some errors because I added a logout method to the PassageClient.
https://github.com/knpuniversity/oauth2-client-bundle/actions/runs/6580735273/job/17879341475

To logout from Passage you need to be redirected from a allowed logout url which you define in the backend of Passage when you configure OAUTH.

It would be okay for me to remove it from the PassageClient and I will document in malteschlueter/oauth2-passage how to logout.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thank you!

@bocharsky-bw bocharsky-bw merged commit 2d4aacd into knpuniversity:master Oct 24, 2023
10 checks passed
@malteschlueter malteschlueter deleted the feature/add-passage-provider branch April 30, 2024 12:48
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