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

[NEW] Add support to login through CAS. #91

Merged
merged 3 commits into from
Mar 12, 2018
Merged

Conversation

philipbrito
Copy link
Contributor

No description provided.

data class CasLoginPayload(val cas: Data)

@JsonSerializable
data class Data(val credentialToken: String)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't the name of this class too generic to something like this? Wouldn't be better to have something like CasLoginPayloadData?

import chat.rocket.core.internal.model.UserPayload
import chat.rocket.core.internal.model.UsernameLoginPayload
import chat.rocket.core.internal.model.UserPayloadData
import chat.rocket.core.internal.model.*
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really necessary to import all models here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IDE auto import.

Copy link
Contributor

@rafaelks rafaelks left a comment

Choose a reason for hiding this comment

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

Just some small code stuff, but LGMT.

@philipbrito philipbrito merged commit 67b55d5 into develop Mar 12, 2018
@philipbrito philipbrito deleted the new/cas-login-support branch March 12, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants