Repository navigation
add privilege request protocol spec - #18
Conversation
This comment has been minimized.
This comment has been minimized.
|
@RubenVerborgh this is a proposal, a formal specification of #12 and discussion at the previous meeting. the introduction definitely can use more background and explanation. i'll work more on that. generally this addresses the "how does an app ask for more (or any) privilege when trying to access resources on behalf of its user?" specifically for cases where resource owners and/or users might want to limit data accesibility by app (for example, so your photos app can't read your chat messages). this is a new protocol as far as i know (i didn't find any existing link relations that seemed appropriate, and i'm not aware of any existing standard). mandatory/optional: hopefully there will only be one way of requesting needed privilege. clients and servers would be free to not implement this. a client not implementing it wouldn't be able to request additional privilege (perhaps requiring painful manual intervention of an owner/admin). a server would only support this if it wanted to allow clients to request additional privilege. not implementing it is "status quo". |
This comment has been minimized.
This comment has been minimized.
| with the server. The method and semantics of authentication are beyond the | ||
| scope of this memo. Methods could include, but are not limited to, use of the | ||
| HTTP `Authorization` header using a scheme supported by the server such as | ||
| `Bearer`, or a TLS client certificate. |
There was a problem hiding this comment.
The way Solid would use this would at the moment strictly be with Authorization Bearer + PoP token, so it might be confusing to mention TLS client certificate as an example here, even if it's just an example. Then again, at the level of this document, the point stands that that's an independent choice.
There was a problem hiding this comment.
the intent of this proposal is that it's generic, and not only not solid-specific but not even specific to today's solid auth mechanisms.
| to access this interface, to which the client can redirect the user's trusted | ||
| web browser. The interface URI template **SHOULD** include a `redirect_uri` | ||
| variable so that the interface can eventually redirect back to the client | ||
| application on completion of the management activity. |
There was a problem hiding this comment.
hm, but if this is not required, as per line 56, then how would a web app deal with this?
There was a problem hiding this comment.
if a management URI isn't given, then it's either because a web-based privilege management interface isn't available, or because the server determined it wasn't appropriate to allow the client's user to access the interface. in either case, the web app deals with this by moving on (perhaps by informing the user that a request for access was sent). at this point, until some action out-of-band action is taken, there's nothing else for the app to do with regards to this request.
michielbdejong
left a comment
There was a problem hiding this comment.
looks good so far, but see questions inline, particularly about CORS and how a client knows when to retry
| about the client. The `Link` header **SHOULD** include an `expires_in` | ||
| parameter giving the number of seconds after the `Date` of this response at | ||
| which the privilege request URI will no longer be valid. | ||
| Note: When supporting browser-based applictations, servers **SHOULD** take |
There was a problem hiding this comment.
s/applictations/applications
There was a problem hiding this comment.
fixed in latest commit
There was a problem hiding this comment.
Great! Thanks for making those changes, all looks dandy now. I guess we can merge this PR so that this document becomes a (draft) output of our panel, and then if we at some point we want to make changes to it, we can do that in new PRs.
At some point in the future (probably when we have the whole picture of how this works) we can then use this text (together with our panel's other work) in one big PR to https://github.com/solid/specification to get the results of our panel signed off and become part of the next version of the official Solid spec
dmitrizagidulin
left a comment
There was a problem hiding this comment.
👍 for merging, this is a great proposal.
I do want to explore (in further issues) the possibility of removing the intermediate POST step, but that can be done later.
|
(We forgot to discuss the header names and the link relation key on the call, we can do that in the comments here, or in subsequent PRs) |
No description provided.