Open maikschneider opened 8 months ago
I am also trying to find my way around in the codebase to accomplish this. What would be needed for this even if we need to fork? Probably something around here:
Any recommendations?
While we don't have a general documentation for this yet, you can reference the discord documentation to see how the access token is accessed: https://docs.goauthentik.io/docs/sources/discord/#checking-for-membership-of-a-discord-guild
Describe your question Can the OAuth AccessToken be accessed in an Expression Policy to make an additional API request? I want to get additional user information inside the
default-source-enrollment
flow. I think about adding a new policy in thedefault-source-enrollment-prompt
which puts additional data into therequest.context["prompt_data"]
.Relevant infos I hope, something like this is possible:
Version and Deployment (please complete the following information):
Any hints for debugging this any further are appreciated. Thanks!