Closed PhPPgAdminBug closed 4 years ago
I came here for the same thing, but my question is: Can I extend this bundle to create my on provider ? It's easy to use ?
@ketamina96 You can do that easily, you need to make it a symfony service, but I no longer remember the way you referenced it in the config. The downside is, they have a very strict validation on the resource owners and if you'd like to open-source your solution, you can't pass dynamic config as it's done with this bundle, it has to be implemented by YOUR bundle, which should expose a way to configure the resource owner service.
I've created an issue to loosen up the config validation a bit, but it got no attention, so your best shot is implement it on your own for your own project, if you need it in several, either copy/paste, create a very extensible bundle where config is handled by your bundle, or copy/paste them and forget about it.
And your last, ugly option is to load your copy of their Configuration file before theirs and do the changes you need in order to make it work there.
Many hacks & workarounds, just pick the one that suits you best. I'd go with a service since that's the official way of doing it with this bundle and is best suited if you only need it in one project.
Hi,
Thank you for reply @wucdbm . I found out that Steam is using OpenID and this bundle is used for OAuth... I'll try to create my custom authentication provider based on a Symfony2 Steam Login bundle...
Thank you again!
I'm closing this issue because it is possible to declare custom resource owners.
Eould you be so kind to add login and registration feature through such systems like
?