authorization-panel
authorization-panel copied to clipboard
input from Michiel
user uses browser to visit a web app web app redirects the user to log in to IDP/auth-server and get a bearer token (could be repeated for JIT auth) IDP/auth-server redirects the user back to the web app web app uses the bearer token to access some storage server? questions:
- which resources does the web app get read/write/append/control access to?
- how does the web app tell the IDP/auth-server which access scopes they request?
- how does the user tell the IDP/auth-server about their decision?
- how does the IDP/auth-server communicate the user's decision to the storage server?
I (Michiel) think about 4., the best way to do that would have to be some way represented inside the bearer token, right?
-
is a UX problem, and very difficult.
-
is related to 3. but additionally needs some standardization
-
- currently we only say read/write/append/control all or nothing. other dimensions could be per document (but should the user understand file paths? and is that safe?), or type of document / domain, or context of the data
Pros and Cons to putting permissions in the Bearer token
PROS
- No need for the IDP to interact with the storage server
CONS
- Assumes that the IDP has responsibility over access control
- Must authenticate on each device (though perhaps it could be stored on the idp)
we should have a server-side, revokable, representation of the user's decision