Open jnothman opened 2 years ago
Yes, that's where I would start as well, @jnothman. If you run into other issues with this please let us know.
We've currently managed to hack this to give a basic user on the basis of an environment variable: https://github.com/ElevnLi/leaf/pull/3/commits/247cf0064ead8abc7794aaa56ecc65fa09a5184c Ideally we'd control this from appsettings.json.
Nice work @ElevnLi and @jnothman! We'd love to work these changes in upstream.
How about adding in something like:
"Authorization": {
"Mechanism": "UNSECURED",
"AllowAllAuthenticatedUsers": true,
"UnsecuredIsAdmin": false,
...
Happy for that config, we just needed a quick fix for a demo. :)
@jnothman I'll work that into our next minor release, seems very straightforward.
I want to be able to run a demo of Leaf with a non-admin user, without setting up an identity service provider. This allows us to demo the Leaf functionality without exposing the entire database. What would be the easiest way to do this?
(My first attempt, dropping the "admin" claim from the
Claims
field of the admin user inauth.Login
didn't work.)