-
Notifications
You must be signed in to change notification settings - Fork 291
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
Conversation
Codecov Report
@@ 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 |
aaabcb0
to
bc269f2
Compare
useEffect(() => { | ||
const isEnabled = | ||
Config.getConfig().URL.MOBILE_BASE && UrlUtil.hasURLParameter(QUERY_KEY.PWA_AWARE) && isPwaSupportedBrowser(); | ||
setIsPwaEnabled(isEnabled); | ||
if (isEnabled) { | ||
setForceNewTemporaryGuestAccount(true); | ||
} | ||
}, []); | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
1cf62d5
to
2844aab
Compare
Co-authored-by: Przemysław Jóźwik <przemyslaw.jozwik@wire.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! :)
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
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