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
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 )