Unify users and OAuth ACLs #654
choffmeister
started this conversation in
General
Replies: 1 comment
-
|
Tinyauth uses two different kinds of whitelists. The environment variable called |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
while trying out v5 alpha I fell over something: I had an OAuth provider configured, set up an app and configured the user allow list to contain my specific user. My (and IHMO most peoples) assumption was, that as soon as I start allow listing at least one identity, then no other identity can get in anymore. But turns out, that all OAuth based logins where still accepted. Only once I had added also one OAuth whitelist (why the two different namings btw?), then also OAuth was limited down.
I think this is a potentially catastrophic misconfiguration that can easily. Also in one tinyauth application there might be apps, where only my one in-file
adminuser should have access to one app (and hence I cannot whitelist yet another OAuth identity). So the current setup is not only confusing, but also has some relevant cases, that cannot be achieved.How about unifying ACLs all together like this:
user:{username}oauth:{provider}:{email}(this would allow, to specifically address identities in a specific provider)For example
or
And then defining any allow, would automatically block anyone not from that allow list, regardless of the source of the other user.
Same would of course apply for blocking.
Beta Was this translation helpful? Give feedback.
All reactions