Skip to content

Improve: Marketplace auth inside Rocket.Chat instead of inside the iframe. #14258

Merged
rodrigok merged 7 commits intodevelopfrom
adjust-marketplace-login
Apr 27, 2019
Merged

Improve: Marketplace auth inside Rocket.Chat instead of inside the iframe. #14258
rodrigok merged 7 commits intodevelopfrom
adjust-marketplace-login

Conversation

@geekgonecrazy
Copy link
Copy Markdown
Contributor

@geekgonecrazy geekgonecrazy commented Apr 26, 2019

Oauth inside of iframe requires us to weaken security on cloud side. So instead moving to do oauth in Rocket.Chat. Passing a short lived token to marketplace.

Refactored the cloud page more. Ideally making it easier to understand the need. Changed menu to cloud connect, add button for cloud console and many others
image

Added a login button to the marketplace page:

image

If you click purchase and you aren't logged in or your server isn't registered you'll see this:

image

Now if the server isn't registered it won't show them a login page they won't have a login for, which will hopefully reduce confusion a lot.

This should be the last time this is visited before 1.0

…ecure.

Refactored the cloud page.  Changed menu to cloud connect, add button for cloud console and many others
@geekgonecrazy geekgonecrazy requested a review from rodrigok April 26, 2019 08:51
@d-gubert d-gubert self-assigned this Apr 26, 2019
@geekgonecrazy
Copy link
Copy Markdown
Contributor Author

@rocketchat/core
Please make sure this makes 1.0.
Content-Security-Policy: frame-ancestors 'none'; will be returned from every endpoint on cloud.rocket.chat which will cause the existing embedded login method to stop working. This is important to ensure XSS attack surfaces are reduced.

Please let me know if you need help testing, or if any changes need made.

@rodrigok rodrigok merged commit 67d07a2 into develop Apr 27, 2019
@rodrigok rodrigok deleted the adjust-marketplace-login branch April 27, 2019 18:22
@rodrigok rodrigok mentioned this pull request Apr 28, 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.

3 participants