question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there anywhere to omit certain route from authorization. For example I would not want protect the /auth path.

Can I do like:

app.use(acl.authorize).unless({path: ['/auth']}));

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nyambaticommented, Apr 22, 2016

@kahwooi I have included the unless package, to the authorize middlware. Now you can use it as


app.use(acl.authorize.unless({path:['/auth']));

Although this changes may not reflect on the npm package for now. Thanks for your contribution

1reaction
kahwooicommented, Apr 22, 2016

@andela-thomas I can do this in my code:

var unless = require('express-unless');

// ACL middleware
var aclAuth = acl.authorize;
aclAuth.unless = unless;
app.use(aclAuth.unless({path: ['/users/auth']}));
Read more comments on GitHub >

github_iconTop Results From Across the Web

Protected vs. Unprotected Circuits: An Explanation in Under ...
Path protection is an end-to-end protection scheme that protects against failures on a service provider's network. While there are different ...
Read more >
The Survivalist Path - Unprotected but Dangerous
The Survivalist Path - Unprotected but Dangerous is a Quest in Escape from Tarkov. Eliminate 5 Scavs without wearing any body armor on...
Read more >
Path protection - Wikipedia
Path protection in telecommunications is an end-to-end protection scheme used in connection ... Circuits in optical mesh networks can be unprotected, protected to...
Read more >
The Survivalist Path - Jaeger Task Guide - Escape From Tarkov
#piranha #escapefromtarkov #guide. The Survivalist Path - Unprotected but Dangerous - Jaeger Task Guide - Escape From Tarkov.
Read more >
Unprotected Service Definition | Law Insider
Unprotected Service means a Service provided over a single cable path. In the event of failure of the single cable path, we will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found