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

Add additional parameters for WS-Fed URL #123

Merged
merged 1 commit into from
Jul 26, 2018
Merged

Conversation

joshcanhelp
Copy link
Contributor

Add options parameter to wsfed_url method + tests

}
URI::HTTPS.build(host: @domain, path: "/wsfed/#{@client_id}", query: to_query(request_params))

url_client_id = @client_id if !request_params[:wtrealm]
Copy link
Contributor

Choose a reason for hiding this comment

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

so wtrealm and client_id are not compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

request_params = {
whr: connection
whr: connection,
wtrealm: options[:wtrealm],
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a test that asserts these properties are not being sent in the body when "null" or missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just generates a URL, no HTTP requests

@joshcanhelp joshcanhelp merged commit a9c1aff into master Jul 26, 2018
@joshcanhelp joshcanhelp deleted the add-ws-fed-params branch July 26, 2018 16: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.

2 participants