Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Closes #4350: Allow for a missing action param in FxA auth flows #4360

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

grigoryk
Copy link
Contributor

@grigoryk grigoryk commented Sep 9, 2019

It's possible that action parameter may be missing. This patch adds handling for that case,
and tests for the interceptor (which were missing entirely) that cover all combinations.


Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

@grigoryk grigoryk requested a review from a team as a code owner September 9, 2019 20:53
Copy link
Contributor

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

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

@@ -72,6 +72,9 @@ permalink: /changelog/
* **feature-pwa**
* Adds the ability to create a basic shortcut with a custom label

* **concept-sync**
* ⚠️ **This is a breaking change**: `action` param of `AuthType.OtherExternal` is now optional. Missing `action` indicates that we really don't know what external authType we've hit.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I don't think it's a breaking change since we're going from required -> optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a breaking change for consumers of AuthType. If they relied on action as being always present, now it's not the case.

@jonalmeida
Copy link
Contributor

bors r+

@grigoryk need to fix the conflict though.

@bors
Copy link

bors bot commented Sep 9, 2019

Merge conflict

… auth flows

It's possible that `action` parameter may be missing. This patch adds handling for that case,
and tests for the interceptor (which were missing entirely) that cover all combinations.
@grigoryk
Copy link
Contributor Author

grigoryk commented Sep 9, 2019

bors retry

bors bot pushed a commit that referenced this pull request Sep 9, 2019
4360: Closes #4350: Allow for a missing `action` param in FxA auth flows r=jonalmeida a=grigoryk

It's possible that `action` parameter may be missing. This patch adds handling for that case,
and tests for the interceptor (which were missing entirely) that cover all combinations.




Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
@bors
Copy link

bors bot commented Sep 9, 2019

Timed out

@grigoryk
Copy link
Contributor Author

grigoryk commented Sep 9, 2019

bors r=jonalmeida

bors bot pushed a commit that referenced this pull request Sep 9, 2019
4351: Closes #4161: Make MediaState extension methods visible for consuming apps. r=csadilek a=pocmo



4360: Closes #4350: Allow for a missing `action` param in FxA auth flows r=jonalmeida a=grigoryk

It's possible that `action` parameter may be missing. This patch adds handling for that case,
and tests for the interceptor (which were missing entirely) that cover all combinations.




Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
@bors
Copy link

bors bot commented Sep 10, 2019

Build succeeded

@bors bors bot merged commit 97edf6e into mozilla-mobile:master Sep 10, 2019
@grigoryk grigoryk deleted the issue4350 branch September 10, 2019 00:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants