# How to use custom OAuth verification with DiscourseConnect?

**URL:** <https://meta.discourse.org/t/how-to-use-custom-oauth-verification-with-discourseconnect/315808>\
**Category:** SSO\
**Created:** [July 10, 2024, 10:07pm UTC](https://meta.discourse.org/t/how-to-use-custom-oauth-verification-with-discourseconnect/315808 "2024-07-10T22:07:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lawmixeraintalive](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lawmixeraintalive/32/199458_2.png) [@lawmixeraintalive](https://meta.discourse.org/u/lawmixeraintalive)\
**Post date:** [July 23, 2024, 7:12pm UTC](https://meta.discourse.org/t/how-to-use-custom-oauth-verification-with-discourseconnect/315808/6 "2024-07-23T19:12:42Z")

</div>

Update on my question:

1. Do I have to encode the URL with base64 or can I just leave it normal without encoding it?
2. How would I return data? Is it something like:

```py
return {
        "permalink": roblox_info.user.username,
        "username": roblox_info.user.username, 
        "uri": roblox_info.user.profile_uri, 
        "avatar_url": roblox_info.user.generate_headshot(size=420, format="jpeg", is_circular=True),
        
        # These I would like to be user fields (either public or private)
        "group_rank": group_rank, # Public User Field
        "discord_id": discord_id, # Private User Field
        "roblox_id": roblox_info.user.id, # Private User Field
    }

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-custom-oauth-verification-with-discourseconnect/315808)._
