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

Latest commit

 

History

History
72 lines (44 loc) · 1.13 KB

readme.md

File metadata and controls

72 lines (44 loc) · 1.13 KB

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