Files
xen-orchestra/packages/xo-server-auth-google/README.md

78 lines
1.8 KiB
Markdown
Raw Normal View History

2015-09-22 17:27:57 +02:00
# xo-server-auth-google [![Build Status](https://travis-ci.org/vatesfr/xo-server-auth-google.png?branch=master)](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):
![](create-project.png)
![](create-project-2.png)
Enable the Google+ API:
![](enable-google+-api.png)
Add OAuth 2.0 credentials:
![](add-oauth2-credentials.png)
![](add-oauth2-credentials-2.png)
### 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).
2015-09-22 17:27:57 +02:00
## Development
```
# Install dependencies
2015-09-22 17:27:57 +02:00
> npm install
# Run the tests
> npm test
2015-09-22 17:27:57 +02:00
# Continuously compile
2015-09-22 17:27:57 +02:00
> npm run dev
# Continuously run the tests
> npm run dev-test
2015-09-22 17:27:57 +02:00
# Build for production (automatically called by npm install)
> npm run build
2015-09-22 17:27:57 +02:00
```
## 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)