Skip to content

integreat-io/integreat-authenticator-googleauth

Repository files navigation

Google Auth authenticator for Integreat

Uses Google's Auth to authenticate.

npm Version Maintainability

Getting started

Prerequisits

Requires node v20 and Integreat v1.0.

Installing and using

Install from npm:

npm install integreat-authenticator-googleauth

The authenticator supports the following options:

  • type: 'accessToken' is the default and returns a Google access token. Set to 'idToken' to return a Google ID token (JWT).
  • aud: The audience for the ID token. When not set, the url will be used as audience. Not relevant for access token.
  • url: The url to call when fetching the ID token. No default. Not relevant for access token.
  • scopes: A scope string or an array of scope strings. Default is 'https://www.googleapis.com/auth/cloud-platform'. If you need to have no scopes for some reason, set it to an empty array.

Running the tests

The tests can be run with npm test.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the ISC License - see the LICENSE file for details.

About

Google Auth authenticator for Integreat

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •