by yoz-y · 7y ago · 0 comments
Basic authentication is fine if all you need is to control access to documents, but it can not be used for access delegation or any scope control.
Why not? It's just a header with a username and password. Your app can do whatever you want with that info. It also doesn't strictly have to be a username and password, you allow app tokens or whatever you want in there, that's just what the browser UI calls it.
You can make your application code check the authorization header, get the username from there and do authorization based on that.