⏳️ AVAILABILITY: This feature is available only to Open Source developers and select Legacy Enterprise plan Vanilla Cloud developers.
- To learn how to create your own plugin, see:
- To learn about the OAuth2 addon that can provide a plug-and-play SSO solution, see:
You can use the OAuth2 plugin as a template.
Make sure your plugin extends Gdn_OAuth2.
You may want to change your ProviderKey (i.e., the key that is used to store your configuration data in the db) to something unique, such as:
$this->setProviderKey('myOauthConnection');
This key will appear as part of a URL on the public-facing site when users connect, so it should be: relevant, readable, and URL safe.
Now you can override any of the methods or constants in Gdn_OAuth2 or create new hooks for added functionality.