Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Elefrant/elefrant-oauth2

Repository files navigation

elefrant-oauth2 Component

wercker status

Dependency Status

Usage

Integarte oAuth 2.0 with elefrant.

When the component is enable, all routes from the API are block to non users. If you want to make a route public:

module.exports = [{
	path: '/',
	method: 'GET',
	oauth: false,
	version: [
		'1.0.0'
	],
	action: 'users.v1.getAll'
}];

Dependable components

elefrant-template-engine

elefrant-session

Structure

Config /config/

Copy oauth2.js from ./components/elefrant-oauth2 to main config folder.

note: in config/server the property

...
bodyParser: {
	mapParams: false
},
...

Grants

Select the grunt types for the authentication server.

[
    'password',
    'refresh_token'
]

Launch tests

Just put in the console: npm test

License

MIT © Elefrant

About

Component to implement an OAuth2 Server/Provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published