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

Use password-realm grant for /oauth/token endpoint #56

Merged
merged 3 commits into from
Dec 27, 2016

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Dec 21, 2016

Login using /oauth/token endpoint was sending grant_type = 'password' which was wrong. This PR fixes that and also allows the AuthenticationRequest to specify a realm value.

@@ -104,6 +106,16 @@ public ParameterBuilder setConnection(String connection) {
}

/**
* Sets the 'realm' parameter
Copy link
Member

Choose a reason for hiding this comment

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

Let's explain better what the realm is

@Override
public SignUpRequest setRealm(String realm) {
signUpRequest.setConnection(realm);
authenticationRequest.setRealm(realm);
Copy link
Member

Choose a reason for hiding this comment

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

And for connection? also if we are not using the proper grant (e.g. when working with the legacy endpoints) what will happen?. If we quietly ignore them we should at least issue a warning in the logs

@hzalaz hzalaz removed their assignment Dec 26, 2016
@hzalaz hzalaz merged commit b484838 into master Dec 27, 2016
@hzalaz hzalaz deleted the login-password-realm branch December 27, 2016 13:19
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