we-plugin-passport-oauth2

We.js oauth2 token authentication, use for your single page app

Usage no npm install needed!

<script type="module">
  import wePluginPassportOauth2 from 'https://cdn.skypack.dev/we-plugin-passport-oauth2';
</script>

README

We.js oauth2 authentication plugin

Authentication for your single page app or serve API resources with Oauth 2

Powered by oauth20-provider

Installation

With npm:

we i we-plugin-passport-oauth2

Configuration

we-plugin-passport-oauth2-client is plug and play by default but you can override default settings

For all avaible settings see: https://github.com/wejs/we-plugin-passport-oauth2/blob/master/plugin.js#L10

Example

https://github.com/wejs-examples/we-project-oauth2

API

See: plugins.js file or tests in this repository

Links

License

MIT