From f020385c36f43e4045debc5ae10ef4cfd6b731c3 Mon Sep 17 00:00:00 2001
From: prichier <pascoualito@gmail.com>
Date: Sat, 27 Jun 2020 01:09:46 +0200
Subject: [PATCH] Add claim tutorial on Writefreely template

---
 hiboo/application/social.py                              | 2 +-
 hiboo/application/templates/application_writefreely.html | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/hiboo/application/social.py b/hiboo/application/social.py
index edc9ca2f..cdbd9999 100644
--- a/hiboo/application/social.py
+++ b/hiboo/application/social.py
@@ -118,4 +118,4 @@ class PeertubeApplication(base.OIDCApplication):
         form.process(
             obj=service,
             application_uri=service.config.get("application_uri")
-        )
+        )
\ No newline at end of file
diff --git a/hiboo/application/templates/application_writefreely.html b/hiboo/application/templates/application_writefreely.html
index 29adf013..2c11fad2 100644
--- a/hiboo/application/templates/application_writefreely.html
+++ b/hiboo/application/templates/application_writefreely.html
@@ -19,8 +19,7 @@ auth_endpoint      = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
     profiles under Hiboo.
 </p>
 <p>Accounts are stored in the <i>users</i> table of the database. The following SQL query exports
-    userid, username, password hash, and user email as alternate claim to a CSV file. It dynamically converts the password
-    to use a proper crypt context hash identifier, so that Hiboo will recognize the hash.
+    username and password hash to a CSV file. Hiboo will recognize the hash as it use a proper crypt context hash identifier
 </p>
 <pre>
     use writefreely;
@@ -35,8 +34,9 @@ auth_endpoint      = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
     flask profile csv-unclaimed {{ service.uuid }} /var/lib/mysql/writefreely/usersWF.csv
 </pre>
 <p>
+   Now we need to attach created unclaimed profiles to Writefreely users (as writefreely don't use Oauth2 profile name but only profile uuid).<br>
    Click on "View profiles" on top of this page and click on "Export unclaimed profiles", save the csv file in /var/lib/mysql/writefreely/unclaimedWF.csv.
-   Use this script onWritefreely database:
+   Use this script on Writefreely database:
 </p>
 <pre>
     use writefreely;
@@ -62,6 +62,7 @@ auth_endpoint      = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
         users wf
     ON h.profile_name = wf.username
 
+    drop table tmp_hiboo;
 
 </pre>
 
-- 
GitLab