strongloop / loopback-component-oauth2

oAuth 2.0 server for LoopBack
http://www.strongloop.com
Other
62 stars 63 forks source link

support configuring paths and exclusions #56

Closed JonnyBGod closed 7 years ago

JonnyBGod commented 7 years ago

Description

Make it possible to configure paths and exclusion rules.

var auth = oauth2.authenticate({
  session: false,
  scope: ['email', 'public_profile', 'user'],
  paths: [
    {
      path: '/api',
      exclude: [
        /users\/?(login|register|reset)/,
        {
          method: 'GET',
          path: '(users|apps)$'
        }
      ]
    }
  ]
});

Related issues

https://github.com/strongloop/loopback/issues/2337

Checklist

slnode commented 7 years ago

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

slnode commented 7 years ago

Can one of the admins verify this patch?

slnode commented 7 years ago

Can one of the admins verify this patch?

slnode commented 7 years ago

Can one of the admins verify this patch?

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 7 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.