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

feat: allow mobile oauth/calendar access [WPB-1524] #15453

Merged
merged 13 commits into from
Jul 21, 2023
Merged

Conversation

tlebon
Copy link
Contributor

@tlebon tlebon commented Jul 11, 2023

StoryWPB-1524 [WEB] Allow oauth access from mobile devices


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

allows access to the mobile login flow for mobile devices only during oauth

Causes (Optional)

mobile browser is blocked for all cases currently. should be allowed in this specific case.

Solutions

allow mobile browser in the runtimeAction, improve some stylign.

Testing

How to Test

currently testable with mobile devices @ https://wire-webapp-qa.zinfra.io/auth?client_id=e30a9b94-8e0d-4b15-8a1a-236f68729cdd&redirect_uri=https%3A%2F%2Foutlook.integrations.zinfra.io%2Fcallback.html&response_type=code&state=059fd6946227cec2&scope=write%3Aconversations+write%3Aconversations_code+read%3Aself+read%3Afeature_configs&code_challenge_method=S256&code_challenge=4iV76XHRmPw-bIO5B0io4_F2ittdwd0EULIZ3T-LMU0#/authorize

@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #15453 (b8ad127) into dev (93794cd) will increase coverage by 0.11%.
The diff coverage is 13.04%.

❗ Current head b8ad127 differs from pull request most recent head e2962c2. Consider uploading reports for the commit e2962c2 to get more accurate results

@@            Coverage Diff             @@
##              dev   #15453      +/-   ##
==========================================
+ Coverage   43.32%   43.43%   +0.11%     
==========================================
  Files         647      649       +2     
  Lines       21831    22091     +260     
  Branches     5018     5053      +35     
==========================================
+ Hits         9458     9596     +138     
- Misses      11154    11262     +108     
- Partials     1219     1233      +14     

@tlebon tlebon changed the title feat: mobile oauth feat: mobile oauth [WPB-1524] Jul 13, 2023
@tlebon tlebon changed the title feat: mobile oauth [WPB-1524] feat: allow mobile oauth/calendar access [WPB-1524] Jul 13, 2023
@tlebon tlebon marked this pull request as ready for review July 13, 2023 21:23
@tlebon tlebon requested review from a team and otto-the-bot as code owners July 13, 2023 21:23
Comment on lines -124 to -132
useEffect(() => {
const isEnabled =
Config.getConfig().URL.MOBILE_BASE && UrlUtil.hasURLParameter(QUERY_KEY.PWA_AWARE) && isPwaSupportedBrowser();
setIsPwaEnabled(isEnabled);
if (isEnabled) {
setForceNewTemporaryGuestAccount(true);
}
}, []);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also cleaned out some unused PWA junk

Copy link
Contributor

@PatrykBuniX PatrykBuniX left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Co-authored-by: Przemysław Jóźwik <przemyslaw.jozwik@wire.com>
Copy link
Contributor

@przemvs przemvs left a comment

Choose a reason for hiding this comment

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

LGTM! :)

@tlebon tlebon enabled auto-merge (squash) July 21, 2023 10:18
@tlebon tlebon merged commit fce2870 into dev Jul 21, 2023
@tlebon tlebon deleted the feat/mobile-oauth branch July 21, 2023 10: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.

4 participants