1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 13:13:00 +01:00

Merge pull request #1031 from mozilla/use-prod-oauth-server

Use the production fxa server and app id
This commit is contained in:
Danny Coates 2018-11-27 18:02:01 -08:00 committed by GitHub
commit 81cf84b131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,8 +80,8 @@ class MainActivity : AppCompatActivity(), AdvancedWebView.Listener {
} }
fun beginOAuthFlow() { fun beginOAuthFlow() {
Config.custom("https://send-fxa.dev.lcip.org").then(fun (value: Config): FxaResult<Unit> { Config.release().then(fun (value: Config): FxaResult<Unit> {
mAccount = FirefoxAccount(value, "8ee4e99dcddd0997", "https://send.firefox.com/fxa/android-redirect.html") mAccount = FirefoxAccount(value, "20f7931c9054d833", "https://send.firefox.com/fxa/android-redirect.html")
mAccount?.beginOAuthFlow(arrayOf("profile", "https://identity.mozilla.com/apps/send"), true)?.then(fun (url: String): FxaResult<Unit> { mAccount?.beginOAuthFlow(arrayOf("profile", "https://identity.mozilla.com/apps/send"), true)?.then(fun (url: String): FxaResult<Unit> {
Log.w("CONFIG", "GOT A URL " + url) Log.w("CONFIG", "GOT A URL " + url)
this@MainActivity.runOnUiThread({ this@MainActivity.runOnUiThread({