Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encourage appservices to use the Authorization header #1534

Merged
merged 3 commits into from
Aug 21, 2018

Conversation

turt2live
Copy link
Member

Rendered: see 'docs' status check.


This also throws in a mention about how to handle a request with a lack of user_id.

The request samples now encourage the use of the header over the query string, and have had their sample values added for some readability.

Fixes #1296
Fixes #1424

This also throws in a mention about how to handle a request with a lack of user_id.

The request samples now encourage the use of the header over the query string, and have had their sample values added for some readability. 

Fixes matrix-org#1296
Fixes matrix-org#1424
@turt2live turt2live requested a review from a team August 17, 2018 19:50
@turt2live turt2live added this to In review in August 2018 r0 via automation Aug 17, 2018
@Half-Shot Half-Shot mentioned this pull request Aug 17, 2018
11 tasks
@@ -192,22 +192,28 @@ they wish to be acting on behalf of. For real users, this would require
additional permissions granting the AS permission to masquerade as a matrix user.
Copy link
Member

Choose a reason for hiding this comment

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

this paragraph (github won't let me comment on the offending line) contains a bunch of "wouldn't it be nice if" words rather than "this is how it is". Likewise there is some "this will happen" below which makes this sound like a proposal rather than a statement of fact.

Could you clarify this while you're in the area?

@turt2live turt2live requested a review from richvdh August 20, 2018 18:35
@turt2live turt2live assigned richvdh and unassigned turt2live Aug 20, 2018
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

additional permissions granting the AS permission to masquerade as a matrix user.
every request. To avoid the application service from having to keep track of each
user's access token, the application service should identify itself to the Client-Server
API by providing its ``as_token`` instead for the ``access_token`` alongside the
Copy link
Member

Choose a reason for hiding this comment

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

"instead for" sounds wrong. Just "for", maybe?

August 2018 r0 automation moved this from In review to Reviewer approved Aug 21, 2018
@richvdh richvdh assigned turt2live and unassigned richvdh Aug 21, 2018
@turt2live turt2live merged commit 9975627 into matrix-org:master Aug 21, 2018
August 2018 r0 automation moved this from Reviewer approved to Done (this list will be incomplete) Aug 21, 2018
@turt2live turt2live deleted the travis/as/auth-impersonation branch August 21, 2018 18:14
RiotTranslateBot pushed a commit to RiotTranslateBot/matrix-doc that referenced this pull request Aug 22, 2023
* Fix ASCII art alignment

Signed-off-by: Michael Kohler <me@michaelkohler.info>

Fixes matrix-org#1430

* Add changelog

---------

Co-authored-by: Travis Ralston <travpc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
August 2018 r0
  
Done (this list will be incomplete)
Development

Successfully merging this pull request may close these issues.

None yet

2 participants