Skip to content

add privilege request protocol spec - #18

Merged
zenomt merged 9 commits into
solid:masterfrom
zenomt:master
Aug 29, 2019
Merged

zenomt merged 9 commits into
solid:masterfrom
zenomt:master

Conversation

@zenomt

@zenomt zenomt commented Aug 18, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@RubenVerborgh

This comment has been minimized.

@zenomt

zenomt commented Aug 19, 2019

Copy link
Copy Markdown
Contributor Author

@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".

@RubenVerborgh

This comment has been minimized.

Comment thread privilege-request-protocol.md Outdated
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread privilege-request-protocol.md Resolved
Comment thread privilege-request-protocol.md Resolved
Comment thread privilege-request-protocol.md Outdated
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, but if this is not required, as per line 56, then how would a web app deal with this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread privilege-request-protocol.md Resolved
Comment thread privilege-request-protocol.md Resolved
Comment thread privilege-request-protocol.md Resolved

@michielbdejong michielbdejong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good so far, but see questions inline, particularly about CORS and how a client knows when to retry

Comment thread privilege-request-protocol.md Outdated
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/applictations/applications

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest commit

@michielbdejong michielbdejong left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 dmitrizagidulin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 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.

@dmitrizagidulin

Copy link
Copy Markdown
Member

(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)

@zenomt
zenomt merged commit 38c1597 into solid:master Aug 29, 2019
@zenomt zenomt mentioned this pull request Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants