WriteFreely supports OIDC authentication through Oauth2.
In order to configure Oauth2 for WriteFreely, you may copy then paste the following lines directly into your WriteFreely config.ini and restart.
[oauth.generic] client_id = {{ service.config["client_id"] }} client_secret = {{ service.config["client_secret"] }} host = {{ url_for('account.home', _external=True).split('/account')[0] }} display_name = Hiboo callback_proxy = callback_proxy_api = token_endpoint = {{ url_for("sso.oidc_token", service_uuid=service.uuid, _external=False) }} inspect_endpoint = {{ url_for("sso.oidc_userinfo", service_uuid=service.uuid, _external=False) }} auth_endpoint = {{ url_for("sso.oidc_authorize", service_uuid=service.uuid, _external=False) }}{% include "application_oidc.html" %}