This plugin is used to authenticate Redmine users using an OAuth2 provider of Gitea.
Download the plugin and install required gems:
cd /path/to/redmine/plugins
git clone https://github.com/arlin2050/redmine_omniauth_client.git
cd /path/to/redmine
bundle install
Restart the app
touch /path/to/redmine/tmp/restart.txt
- Login as a user with administrative privileges.
- In top menu select "Administration".
- Click "Plugins"
- In plugins list, click "Configure" in the row for "Redmine OAuth Client plugin"
- Configure all fields.
- Check the box near "Enable OAuth authentication"
- Click Apply.
Users can now to use their account to log into your instance of Redmine.
Additionaly
- Setup value Autologin in Settings on tab Authentification
- An unauthenticated user requests the URL to your Redmine instance.
- User clicks the "Login via App" button.
- The plugin redirects them to a sign in page if they are not already signed into their account.
- App redirects user back to Redmine, where the OAuth plugin's controller takes over.
One of the following cases will occur:
- If self-registration is disabled (Under Administration > Settings > Authentication) but force_account_creation option is checked, the account is created and user is redirected to 'my/page'.
- Otherwise, self-registration method is used to register users.
- Access webservices in other formats than json.
- Fonctionnal tests