GitHub specific REST remplates for OAuth2 protocol.
GitHub Authorization APIs available at
https://developer.github.com/v3/#authentication and
https://developer.github.com/v3/oauth/
First of all the user must create an API key through the GitHub API Credentials
See: https://github.com/settings/applications/new
The procedure will provide a new Client ID and Client Secret
Also the user must specify the Authorization callback URL pointing to the GeoServer
instances
Example:
- http://localhost:8080/geoserver
The GitHub OAuth2 Filter Endpoint will automatically redirect the users to an URL like the
following one at first login
https://github.com/login/oauth/authorize?response_type=code&client_id=my_client_id&redirect_uri=http://localhost:8080/geoserver&scope=user
Tipically a correct configuration for the GitHub OAuth2 Provider is like the following:
- Cliend Id: my_client_id
- Cliend Secret: my_client_secret
- Access Token URI: https://github.com/login/oauth/access_token
- User Authorization URI: https://github.com/login/oauth/authorize
- Redirect URI: http://localhost:8080/geoserver
- Check Token Endpoint URL: https://api.github.com/user
- Logout URI: https://github.com/logout
- Scopes: user