-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: #225: GrantConfigurator should accept League\OAuth2\Server\Grant… #227
base: master
Are you sure you want to change the base?
Conversation
f4ee26f
to
5a21ac9
Compare
Cool, thanks for the PR. |
I chose not to declare the That said, if custom grants are provided by a library, then relying on an attribute is not viable. Indeed, these libraries are not implemented specifically for Symfony or this bundle, but for the main |
Works for me. Can you add your |
That's a significant behavior change I'm not sure we want: I'd expect my grant type to be autoregistered. Being able to scope/disable grant types is a different story that deserves its own discussion to me. |
done |
To be clear, the bundle interface |
Yes, what I mean is that I think autoregistration of custom grant types is actually desired. So I'd register the oauth2-server lib's |
why not, but in this case, I think we can't activate or not "grants" on some configuration or programmatic basis. However, I don't have any reel use cases yet. I'll let you tell me if you want me to update this PR to add autoregistration. |
Please yes :) |
IMO there is no need to add an attribute to the codebase for this. The |
Yes but with the addition of the autoconfigure defined by the bundle it is more consistent to not need to reassign the tag manually just to be able to set the ttl. |
…Server\Grant\GrantTypeInterface
…gureTag attribute
…2\Server\Grant\GrantTypeInterface
1ba3aa7
to
41caa90
Compare
Fair enough. Can you please rollback on the autoconfiguration part? We do need UPGRADE instructions (ideally in a UPGRADE.md file) showcasing how to switch from the legacy GrantTypeInterface to the lib one with |
…er\Grant\GrantTypeInterface
I just pushed a commit to revert autoconfiguration |
resolve #225