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

Remove telemetry from authorize URL #75

Merged
merged 1 commit into from
Mar 27, 2019

Conversation

joshcanhelp
Copy link
Contributor

Changes

Remove telemetry from authorize URL.

Testing

  • This change adds unit test coverage to make sure no telemetry is added

@joshcanhelp joshcanhelp added this to the v2-Next milestone Mar 18, 2019
@@ -1,3 +1,5 @@
# frozen_string_literal: true
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you need to add this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rubocop suggestion, I don't think it has much effect on what's happening here but idiomatic.

params
end

def build_access_token
telemetry_header = { 'Auth0-Client' => telemetry_encoded }
options.token_params.merge!(:headers => telemetry_header)
options.token_params[:headers] = { 'Auth0-Client' => telemetry_encoded }
Copy link
Contributor

Choose a reason for hiding this comment

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

previously this said "merge". Isn't this now a replace rather than a merge? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be doing the same. Previous was merging options.token_params with :headers => telemetry_header, not merging headers (since :headers might not be a hash or even exist).

@joshcanhelp joshcanhelp merged commit 73e4907 into master Mar 27, 2019
@joshcanhelp joshcanhelp deleted the remove-telemetry-from-authorize branch March 27, 2019 22:35
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