Skip to content
Snippets Groups Projects
Commit f020385c authored by pascoual's avatar pascoual
Browse files

Add claim tutorial on Writefreely template

parent 515c8a19
No related branches found
No related tags found
2 merge requests!20Add 'remember me' button,!17App template writefreely
...@@ -118,4 +118,4 @@ class PeertubeApplication(base.OIDCApplication): ...@@ -118,4 +118,4 @@ class PeertubeApplication(base.OIDCApplication):
form.process( form.process(
obj=service, obj=service,
application_uri=service.config.get("application_uri") application_uri=service.config.get("application_uri")
) )
\ No newline at end of file
...@@ -19,8 +19,7 @@ auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid, ...@@ -19,8 +19,7 @@ auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
profiles under Hiboo. profiles under Hiboo.
</p> </p>
<p>Accounts are stored in the <i>users</i> table of the database. The following SQL query exports <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 username and password hash to a CSV file. Hiboo will recognize the hash as it use a proper crypt context hash identifier
to use a proper crypt context hash identifier, so that Hiboo will recognize the hash.
</p> </p>
<pre> <pre>
use writefreely; use writefreely;
...@@ -35,8 +34,9 @@ auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid, ...@@ -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 flask profile csv-unclaimed {{ service.uuid }} /var/lib/mysql/writefreely/usersWF.csv
</pre> </pre>
<p> <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. 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> </p>
<pre> <pre>
use writefreely; use writefreely;
...@@ -62,6 +62,7 @@ auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid, ...@@ -62,6 +62,7 @@ auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid,
users wf users wf
ON h.profile_name = wf.username ON h.profile_name = wf.username
drop table tmp_hiboo;
</pre> </pre>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment