Commit 46854149 authored by Thomas Markiewicz's avatar Thomas Markiewicz
Browse files

Fixed Librem One account login issue

parent 112a9aa6
Pipeline #51832 passed with stage
in 2 minutes and 28 seconds
...@@ -2,14 +2,16 @@ ...@@ -2,14 +2,16 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [1.0.0] ## [Unreleased]
### Fixed
- fixed Librem One login issue
## [1.0.0]
### Added ### Added
- background service to handle LibremOne system-one accounts - background service to handle LibremOne system-one accounts
- LibremOne login screen - LibremOne login screen
- integration with Librem Social app - integration with Librem Social app
## [0.1.0] ## [0.1.0]
### Added ### Added
* Initial release * Initial release
...@@ -13,8 +13,8 @@ android { ...@@ -13,8 +13,8 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// (major * 1000000) + (minor * 10000) + (patch * 100) + candidate; // (major * 1000000) + (minor * 10000) + (patch * 100) + candidate;
versionCode = 1000000 versionCode = 1000100
versionName = "1.0.0" versionName = "1.0.1"
} }
signingConfigs { signingConfigs {
release { release {
......
...@@ -35,12 +35,12 @@ class LibremOneAccountAuthenticatorActivity : AccountAuthenticatorActivity() { ...@@ -35,12 +35,12 @@ class LibremOneAccountAuthenticatorActivity : AccountAuthenticatorActivity() {
val host = "https://social.librem.one" val host = "https://social.librem.one"
val scope = "read write follow" val scopes = "write read follow"
val regAppParams = JSONObject() val regAppParams = JSONObject()
regAppParams.put("client_name", "LibremSocial") regAppParams.put("client_name", "LibremSocial")
regAppParams.put("redirect_uris", "urn:ietf:wg:oauth:2.0:oob") regAppParams.put("redirect_uris", "urn:ietf:wg:oauth:2.0:oob")
regAppParams.put("scope", scope) regAppParams.put("scopes", scopes)
val regAppRequest = JsonObjectRequest( val regAppRequest = JsonObjectRequest(
Request.Method.POST, Request.Method.POST,
...@@ -55,7 +55,7 @@ class LibremOneAccountAuthenticatorActivity : AccountAuthenticatorActivity() { ...@@ -55,7 +55,7 @@ class LibremOneAccountAuthenticatorActivity : AccountAuthenticatorActivity() {
loginParams.put("grant_type", "password") loginParams.put("grant_type", "password")
loginParams.put("username", username) loginParams.put("username", username)
loginParams.put("password", passphrase) loginParams.put("password", passphrase)
loginParams.put("scope", scope) loginParams.put("scopes", scopes)
loginParams.put("client_id", clientId) loginParams.put("client_id", clientId)
loginParams.put("client_secret", clientSecret) loginParams.put("client_secret", clientSecret)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment