website/integrations/chat-communication-collaboration/writefreely/index.md
An open source platform for building a writing space on the web.
:::caution Currently it is not possible to connect Writefreely to authentik without making an adjustment in the database. See here and Writefreely Setup :::
The following placeholders are used in this guide:
writefreely.company is the FQDN of the Writefreely installation.authentik.company is the FQDN of the authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of Writefreely with authentik, you need to create an application/provider pair in authentik.
Strict redirect URI to https://writefreely.company/oauth/callback/generic.Currently the column access_token is configured too small, so it needs to be adjusted
ALTER TABLE `oauth_users` MODIFY `access_token` varchar(2048);
Configure Writefreely settings by editing the config.ini and add the following:
So that new users can be created the following variable must be set to true
open_registration = false
To disable the local login/registration use the following setting (this is useful because writefreely attracts a lot of spam)
disable_password_auth = false
The following settings must be made for oauth
[oauth.generic]
client_id = <Client ID>
client_secret = <Client Secret>
host = https://authentik.company
display_name = authentik
callback_proxy =
callback_proxy_api =
token_endpoint = /application/o/token/
inspect_endpoint = /application/o/userinfo/
auth_endpoint = /application/o/authorize/
scope = openid profile email
allow_disconnect = false
map_user_id = sub
map_username = nickname
map_display_name = name
map_email = email
Restart writefreely.service
If your usernames in authentik and WriteFreely are different, you might need to link your accounts before being able to use SSO.
To link the accounts, first log into Writefreely with local credentials, and then navigate to Customize -->Account Settings. In the option "Linked Accounts", click on "authentik".