-
Notifications
You must be signed in to change notification settings - Fork 753
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
Create ResourceOwnerEmailInterface #958
Comments
I'm curious. A third party client can extend by itself with any interfaces the ResourceOwnerInterface. Why would you wish to add it to the base? |
For now the main reason is: I'm creating a lib to make this then I wan't to add the option to create a user when it doesn't exist, But for this I need to get the return with a object with
But the providers need to return this common interface. |
To be honest, I don't know Symfony. Maybe I missed something. But from what I understand about your needs, you can extend Your Also, the For example, it's what I done in my third party lib for an REST API. |
Ok, But you are thinking as I'm going to create a new provider, But not it'll be an abstraction of this library,But I can pass many providers, for example:
|
I completely understand that you wish keep an abstracted provider and provide more owner ressource interfaces, but you can still do it by extending the |
any feedback here? 👀 |
well I can provide a PR for this, I just want to be sure, that it's agreed! |
Hi I was trying to get the identify of third party, but I can see the most of the others dependencies like oauth2-client, linkedin and so on, use the
getId()
with theid
provider by the api, it's kind make sense :), But I would like togetEmail
toothen my suggestion is create a new Interface like
and for the api that has email implements email, uses
ResourceOwnerEmailInterface
instead ofResourceOwnerInterface
the second option is
and the Owner class implements both interface
ResourceOwnerEmailInterface
andResourceOwnerInterface
, But I'm not sure about this, it can be useful or not! but the positive thing about this is, we can create others interface likeEmail
,firstName
,Lastname
andimage
, the for the api that has those information just need to add those interfaces.it will be like this
Because those fields are quite useful for most of applications
The text was updated successfully, but these errors were encountered: