New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ruanitto/adonis-oauth2-provider

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ruanitto/adonis-oauth2-provider - npm Package Compare versions

Comparing version 0.0.4-beta to 0.0.7-beta

2

package.json
{
"name": "@ruanitto/adonis-oauth2-provider",
"version": "0.0.4-beta",
"version": "0.0.7-beta",
"description": "Adonis OAuth2 Provider",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -36,7 +36,14 @@ 'use strict'

const Route = use('Route')
Route.group('oauth', () => {
Route.post('token', ({ auth }) => {
return auth.token()
})
}).prefix('oauth')
const Config = use('Config')
const use_routes = Config.get('auth.oauth2.routes_config.register_routes')
const use_prefix = Config.get('auth.oauth2.routes_config.use_prefix')
const prefix = Config.get('auth.oauth2.routes_config.prefix')
if (use_routes) {
const oauth_prefix = (use_prefix && prefix) ? (prefix.trim() + '/oauth') : 'oauth'
Route.group('oauth', () => {
Route.post('token', ({ auth }) => {
return auth.token()
})
}).prefix(oauth_prefix)
}
}

@@ -43,0 +50,0 @@

@@ -29,2 +29,7 @@ # adonis-oauth2-provider

notBefore: 0
},
routes_config: {
register_routes: false, // Define if provider register oauth/token route
use_prefix: false, // Define if oauthProvider add prefix before oauth/token route
prefix: null
}

@@ -35,3 +40,2 @@ }

'@ruanitto/adonis-oauth2-provider/providers/OAuth2Provider' - Auth Provider
'@ruanitto/adonis-oauth2-provider/providers/OAuth2RoutesProvider' - Register Routes (Optional)

@@ -53,2 +57,10 @@ # Model

*Custom route*
Use auth.token() inside route, ex:
```javascript
Route.post('token', ({ auth }) => {
return auth.token()
})
```
*TODO*

@@ -55,0 +67,0 @@ authorization_code grant

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc