Skip to content

Discord Role Sync Documentation Code not Working #12959

@BlockyBlockling

Description

@BlockyBlockling

Describe the bug
In the Syncing Discord roles to Authentik groups Section of the Documentation the connection.access_token returns a None object when following all the Steps

To Reproduce

  1. Follow the Steps to Implement
  2. Add this Code at Line > 17:
ak_create_event("discord_error", source=context["source"], code=access_token
  1. Run the Flow
  2. Check for the Event Result
  3. The code Part will return None (and the Flow will not sync aka. Discord will Respond with 401 response code)

Expected behavior
Access Token not being None and the Sync working

Screenshots
Token as responded (containing Bearer part because it has been copied from authorization header)
Image

Response Recieved from Discord (Returned Object guild_member_request)
Image

Version and Deployment (please complete the following information):

  • authentik version: 2024.12.3
  • Deployment: docker-compose

Additional context
The Guide is pretty complicated in my opinion (not beginner Friendly)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug/confirmedConfirmed bugs

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions