Jarvis
Member
Hi there everyone, I'm working on a generic implementation of a keycloak OAuth provider that we need for our own forum, but that I will also be providing for free for anyone else.
I've got a working repo here, however I'm having issues within the service impl, as well as the data provider impl. I need to get access to the OAuth config, but internally the OAuth subcontainer is acquiring it via calling the provider impl - something I don't know if I can easily do from within the service or data provider.
Specifically, I need the config block from the connected accounts panel. So that I can then set the correct authentication and base endpoints.
Any ideas on how I can gain access? I had a look in
as well as
, but don't see a viable way of gaining the config that way. Should I just be doing a DB call instead?
Cheers.
I've got a working repo here, however I'm having issues within the service impl, as well as the data provider impl. I need to get access to the OAuth config, but internally the OAuth subcontainer is acquiring it via calling the provider impl - something I don't know if I can easily do from within the service or data provider.
Specifically, I need the config block from the connected accounts panel. So that I can then set the correct authentication and base endpoints.
Any ideas on how I can gain access? I had a look in
Code:
\XF:app()->container()
Code:
\XF:app()->oauth()
Cheers.
Last edited: