Comments (3)
I have not included it because the implementations of that can be very heterogeneous and I don't want condition the people. it is not enough cleat that is a hypothetical function for admin checking ?
from buddy-auth.
I generally don't like hypothetical functions in documentation because when I'm unsure what it is supposed to do, I immediately scroll back to try to find the definition. It's not necessarily bad, but I think it's certainly a documentation smell where we can suspect something could have been explained better.
The missing function in question is found in 6.2. Rules Handlers
. I think the true issue is that I would like to know how to write a rule handler but there are gaps in the documentation showing how to do so.
As for implementations being heterogeneous, I'm not sure what the problem with that is. If the written examples work and are of good, idiomatic quality, who cares if they copy paste the code and adapt it to their purposes?
I don't think I have ever complained about something having too much documentation or too many examples.
from buddy-auth.
I have thought about this, and I understand your arguments, but define all hypothetical rule handlers used in examples is not assumible. The concrete example is the admin-user
it can be defined in 100 different ways and some one will need a database access for check if a user is "admin". That is completely out of scope. Providing a simple dummy example definition is completely useless in my opinion.
The documentation comes with an example of the aspect of one rule handler, this can be extrapolated to all hypothetical examples. I have added in some parts the note that that in the the examples are hypothetically defined rule handlers.
In any case, thanks for your suggestion. I appreciate much that!
from buddy-auth.
Related Issues (20)
- Wording, spelling, grammar HOT 6
- Rate Limiting? HOT 1
- Not possible to modify content-type? HOT 1
- Allow for successful authorization of requests that already contain :identity HOT 1
- Document available options HOT 2
- Default token name for JWS should be Bearer? HOT 2
- Adding a transformation function to jwt/jws backends. HOT 1
- "No implementation of method: :-to-bytes of protocol:" error using jws-backend with RSA key HOT 8
- Bad Request and 'missing-required-key' in response with JWS-backend, RSA key HOT 3
- Able to skip auth for OPTIONS requests? HOT 1
- Delay the decision of which secret to use HOT 2
- http-basic doc need amending HOT 1
- Support async handlers HOT 5
- Regarding fn->multi macro HOT 5
- buddy.auth.backends.token/handle-unauthorized-default violates RFC 7235 section 4.1. WWW-Authenticate
- Authorization: Bearer XXX as well a Token? HOT 1
- Authorization scheme for HTTP Basic Authentication should be case insensitive
- wrap-authorization ignores 'raised' unauthorized exceptions in async mode
- Authenticating with Firebase token is impossible the secret changes dynamically HOT 1
- New maintaner HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buddy-auth.