Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Get team_token from the RTS on login#676

Merged
dbkr merged 5 commits into
developfrom
luke/rts-team-token-login
Feb 8, 2017
Merged

Get team_token from the RTS on login#676
dbkr merged 5 commits into
developfrom
luke/rts-team-token-login

Conversation

@lukebarnard1
Copy link
Copy Markdown
Contributor

Use the /login endpoint of the RTS to get the team token when the user has successfully logged in.

Luke Barnard added 3 commits February 3, 2017 14:34
Use the /login endpoint of the RTS to get the team token when the user has successfully logged in.
@lukebarnard1 lukebarnard1 requested a review from dbkr February 7, 2017 12:02
Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

It's a shame that this makes it even easier to discover the team token for a team. In future what we could do is store the team token in user account data.

Comment thread src/Lifecycle.js Outdated
return false;
}
}
const RtsClient = require("./RtsClient");
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.

Shouldn't this be at the top as an import?

Comment thread src/components/structures/MatrixChat.js Outdated
window.addEventListener('resize', this.handleResize);
this.handleResize();

Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
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.

Does this want to be done conditionally on there being a team server URL, as otherwise it looks like we'll always be creating a client but with an undefined URL.

@lukebarnard1
Copy link
Copy Markdown
Contributor Author

lukebarnard1 commented Feb 8, 2017

Yes, if we want to be serious about isolating teams in a secure way then we'd need to support it from account data.

@dbkr dbkr merged commit fe17e24 into develop Feb 8, 2017
@lukebarnard1 lukebarnard1 deleted the luke/rts-team-token-login branch February 8, 2017 10:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants