This is a phpBB extension to implement a Gluu instance as another OAuth Service Provider
- Download the content of this repo and place it into
ext/nockiro/gluuauth
- Navigate in the ACP to
Customise -> Manage extensions
and enable the extension - Create a client in Gluu with the following necessary settings:
- Redirect Login URIs
- Scopes
openid
email
- Response Types
code
id_token
token
- Grant Types
authorization_code
refresh_token
- Authentication method for the Token endpoint
client_secret_post
- Include Claims in Id Token (In tab "Advanced settings")
True
- Set the base URI to your Gluu instance (e.g. https://auth.example.com/oxauth/restv1/) in the ACP (
Extensions -> Gluu OAuth/OpenID Settings
) - Give your Gluu instance a name (that shows on the button on the login page and in the ACP above the two fields) through adding the new Service in
language/en/common.php
around line 100:'AUTH_PROVIDER_OAUTH_SERVICE_GLUU' => "Gluu Login",
- Copy Client ID and Secret from Gluu into the ACP to
General -> Client Communication -> Authentication
in the last box that should have your given Name (e.g. Gluu Login) from step 5
- Navigate in the ACP to
Customise -> Extension Management -> Extensions
. - Look for
Gluu OAuth
under the Enabled Extensions list, and click itsDisable
link. - For a complete uninstall, click
Delete Data
and delete the/ext/nockiro/gluuauth
directory.
- Feel free to ask questions and open issues at any time
- This is my first phpBB plugin and it might have some unnecessary complicated ways to solve some (in my opinion) weaknesses of the Extension API. If you think there is a better way for a bit of code, please feel also free to open an issue about it