# Authentik oauth setup

**URL:** <https://discuss.write.as/t/authentik-oauth-setup/8271>\
**Category:** Help\
**Tags:** writefreely\
**Created:** [February 8, 2023, 4:18pm UTC](https://discuss.write.as/t/authentik-oauth-setup/8271 "2023-02-08T16:18:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tealk](https://discuss.write.as/user_avatar/discuss.write.as/tealk/32/1323_2.png) [@Tealk](https://discuss.write.as/u/Tealk)\
**Post date:** [February 9, 2023, 7:11pm UTC](https://discuss.write.as/t/authentik-oauth-setup/8271/2 "2023-02-09T19:11:55Z")

</div>

So with the following setting, I get redirected back to writefreely and now get the message “User doesn’t exist.”

```auto
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 = nickname
map_username = nickname
map_display_name = name
map_email = email

```

---

_[View the full topic](https://discuss.write.as/t/authentik-oauth-setup/8271)._
