78 lines
1.8 KiB
Markdown
78 lines
1.8 KiB
Markdown
# xo-server-auth-google [](https://travis-ci.org/vatesfr/xo-server-auth-google)
|
|
|
|
> Google authentication plugin for XO-Server
|
|
|
|
This plugin allows Google users to authenticate to Xen-Orchestra.
|
|
|
|
The first time a user signs in, XO will create a new XO user with the
|
|
same identifier.
|
|
|
|
## Install
|
|
|
|
Installation of the [npm package](https://npmjs.org/package/xo-server-auth-google):
|
|
|
|
```
|
|
> npm install --global xo-server-auth-google
|
|
```
|
|
|
|
## Usage
|
|
|
|
> This plugin is based on [passport-google](https://google.com/jaredhanson/passport-google),
|
|
> see [its documentation](https://google.com/jaredhanson/passport-google#configure-strategy)
|
|
> for more information about the configuration.
|
|
|
|
### Creating the Google project
|
|
|
|
[Create a new project](https://console.developers.google.com/project):
|
|
|
|

|
|

|
|
|
|
Enable the Google+ API:
|
|
|
|

|
|
|
|
Add OAuth 2.0 credentials:
|
|
|
|

|
|

|
|
|
|
### Add the plugin to XO-Server config
|
|
|
|
Like all other xo-server plugins, it can be configured directly via
|
|
the web iterface, see [the plugin documentation](https://xen-orchestra.com/docs/plugins.html).
|
|
|
|
## Development
|
|
|
|
```
|
|
# Install dependencies
|
|
> npm install
|
|
|
|
# Run the tests
|
|
> npm test
|
|
|
|
# Continuously compile
|
|
> npm run dev
|
|
|
|
# Continuously run the tests
|
|
> npm run dev-test
|
|
|
|
# Build for production (automatically called by npm install)
|
|
> npm run build
|
|
```
|
|
|
|
## Contributions
|
|
|
|
Contributions are *very* welcomed, either on the documentation or on
|
|
the code.
|
|
|
|
You may:
|
|
|
|
- report any [issue](https://google.com/vatesfr/xo-server-auth-google/issues)
|
|
you've encountered;
|
|
- fork and create a pull request.
|
|
|
|
## License
|
|
|
|
AGPL3 © [Vates SAS](http://vates.fr)
|