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

Commit

Permalink
Merge pull request #3419 from vector-im/feature/firefox_sso
Browse files Browse the repository at this point in the history
Support SSO with Firefox accounts (#3337)
  • Loading branch information
bmarty authored Feb 6, 2020
2 parents 585200c + 937bc15 commit f73c3b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Features ✨:
-

Improvements 🙌:
-
- Support SSO with Firefox accounts (#3337)

Other changes:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class FallbackAuthenticationActivity : VectorAppCompatActivity() {
mMode = intent.getIntExtra(EXTRA_IN_MODE, MODE_LOGIN)

mWebView.settings.javaScriptEnabled = true

// Enable local storage to support SSO with Firefox accounts
mWebView.settings.domStorageEnabled = true
mWebView.settings.databaseEnabled = true

// Due to https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html, we hack
// the user agent to bypass the limitation of Google, as a quick fix (a proper solution will be to use the SSO SDK)
mWebView.settings.userAgentString = "Mozilla/5.0 Google"
Expand Down

0 comments on commit f73c3b6

Please sign in to comment.