Enabled Multi Valued Attributes and Allow Data url redirection (307) (Optional in config) #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Till now multivalued attributes were not received properly in RubyCasClient even though these were being sent as CAS Response. Typical use-case for this behaviour is "memberOf" attribute for LDAP/AD.
All data url(.json, .xml) were given 401 if unauthenticated, A new configuration :redirect_all can be given true in environment.rb to allow all urls(data url) to get self authenticated using basic auth.
To accomplish this we had to use 307 status code rather 302 to maintain initial request httpmethod and request body.
Http clients can use 307 to redirect requests properly, For example post call by Httparty will look like this
response = HTTParty.post(
"My_URL_FOR_DATA_POST",
:body => body.to_json,
:headers => headers,
:maintain_method_across_redirects => true,
<———Must
:resend_on_redirect => true
<———Must
)