Authentication plugin - how to start?

Hi there!
I’d like to make a plugin that authenticates against Discourse SSO on my Discourse instance.
What appproach would you recomend? Adding ‘Login’ as a dependency and working on top of it?

The Login plugin has OAuth integration https://github.com/getgrav/grav-plugin-login-oauth but Discourse is not in the list of the supported providers (and needs a little bit different configuration since there are many instances instead of just a single one, like for the other services)

That’s a starting point!

Yeah, I’m aware. Also, Discourse does not provide authentivcation via oAuth
protocol, but rather via it’s own SSO (Single Sign On) protocol, which is
actually very simple.
By the way, login-oauth plugi could use some loving coder, because at the
moment it’s pretty basic…

napisał: