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

Add MSC2604: Parameters for Login Fallback to the spec. #2709

Merged
merged 4 commits into from
Jul 30, 2020

Conversation

clokep
Copy link
Member

@clokep clokep commented Jul 28, 2020

This adds #2604 to the specification.

I feel like this should cross reference back to the normal login API, but I couldn't figure out how to do that.

@@ -1096,6 +1096,12 @@ This returns an HTML and JavaScript page which can perform the entire login
process. The page will attempt to call the JavaScript function
``window.onLogin`` when login has been successfully completed.

Non-credential related parameters of the login endpoint can be provided as query
parameters, for example the ``device_id`` or ``initial_device_display_name``.
Copy link
Member Author

Choose a reason for hiding this comment

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

I would have liked to not list these out so we don't need to potentially update them in the future, but it seemed clearer to be explicit.

@clokep clokep requested a review from a team July 28, 2020 20:06
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

otherwise looking good - thanks!

changelogs/client_server/newsfragments/2709.new Outdated Show resolved Hide resolved
Comment on lines 1099 to 1100
Non-credential related parameters of the login endpoint can be provided as query
parameters, for example the ``device_id`` or ``initial_device_display_name``.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Non-credential related parameters of the login endpoint can be provided as query
parameters, for example the ``device_id`` or ``initial_device_display_name``.
Non-credential parameters valid for the ``/login`` endpoint can be provided as query
string parameters here. For example::

Copy link
Member

Choose a reason for hiding this comment

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

bonus points if /login becomes a link.

Copy link
Member

Choose a reason for hiding this comment

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

oh, rationale: we're not going to remember to update this so it's better to just leave it vague and open.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right. I couldn't figure out how to make it a link anyway. 😢

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh hmm, something got funky with accepting this one. Did you expect the "These are to be forwarded to the login endpoint during the login process." line to go away?

Copy link
Member Author

Choose a reason for hiding this comment

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

I ended up removing that line as well, I think that's what you were going for!

Copy link
Member

Choose a reason for hiding this comment

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

hmm, that line should have survived, I just forgot about it when writing the suggestion - sorry! I'll stuff it back in.

clokep and others added 3 commits July 29, 2020 07:10
@turt2live turt2live self-requested a review July 29, 2020 13:57
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

will merge manually

@turt2live turt2live merged commit 4daecd0 into master Jul 30, 2020
@clokep
Copy link
Member Author

clokep commented Jul 31, 2020

Thank you! 👍

@clokep clokep deleted the clokep/login-fallback-changes branch May 17, 2023 12:24
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.

None yet

2 participants