diff --git a/hiboo/application/social.py b/hiboo/application/social.py index edc9ca2fe6f75e071a68072e945b76d9a6e3deb1..cdbd9999acf7107afa8721bf564b938a20d6985a 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 29adf013576822da955e551497145d39487f6b85..2c11fad204dbb2e738c85eb9e29da4434112a2ec 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>