[shotwell/wip/flickr-description: 6/7] tumblr: Fix remembering the login



commit a6f1fb1aeb5d9d2b7c061d5dca39c2fa84cda88d
Author: Jens Georg <mail jensge org>
Date:   Thu Mar 12 20:33:51 2020 +0100

    tumblr: Fix remembering the login

 data/gsettings/org.yorba.shotwell-extras.gschema.xml   | 18 ++++++++++++------
 .../authenticator/shotwell/TumblrAuthenticator.vala    |  2 +-
 2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/data/gsettings/org.yorba.shotwell-extras.gschema.xml 
b/data/gsettings/org.yorba.shotwell-extras.gschema.xml
index a4558538..f5034a41 100644
--- a/data/gsettings/org.yorba.shotwell-extras.gschema.xml
+++ b/data/gsettings/org.yorba.shotwell-extras.gschema.xml
@@ -9,16 +9,22 @@
 </schema>
 
 <schema id="org.yorba.shotwell.sharing.org-yorba-shotwell-publishing-tumblr">
-    <key name="token" type="s">
+    <key name="access-phase-token" type="s">
         <default>""</default>
-        <summary>Token</summary>
-        <description>The token to access tumblr</description>
+        <summary>OAuth Access Phase Token</summary>
+        <description>The authorization token for the currently logged in Tumblr user, if any</description>
     </key>
 
-    <key name="token-secret" type="s">
+    <key name="access-phase-token-secret" type="s">
         <default>""</default>
-        <summary>Secret token</summary>
-        <description>The secret token to sign oauth requests</description>
+        <summary>OAuth Access Phase Token Secret</summary>
+        <description>The cryptographic secret used to sign requests against the authorization token for the 
currently logged in Tumblr user, if any</description>
+    </key>
+
+    <key name="access-phase-username" type="s">
+        <default>""</default>
+        <summary>username</summary>
+        <description>The user name of the currently logged in Flickr user, if any</description>
     </key>
 
     <key name="default-size" type="i">
diff --git a/plugins/authenticator/shotwell/TumblrAuthenticator.vala 
b/plugins/authenticator/shotwell/TumblrAuthenticator.vala
index baeaa48e..6337ce73 100644
--- a/plugins/authenticator/shotwell/TumblrAuthenticator.vala
+++ b/plugins/authenticator/shotwell/TumblrAuthenticator.vala
@@ -255,7 +255,7 @@ namespace Publishing.Authenticator.Shotwell.Tumblr {
                             "least one of these is absent"));
                 this.authentication_failed();
             } else {
-                session.set_access_phase_credentials(token, token_secret, "");
+                session.set_access_phase_credentials(token, token_secret, "unused");
             }
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]