Hi everyone :wave: I am using the <webhook respon...
# ory-selfhosting
e
Hi everyone 👋 I am using the webhook response handling capability in Kratos as I want to determine a user's Github organizations before letting them register. I was hoping that in the webhook I could make an API call to Github (using their OIDC Token), and respond with a 403 if the expected organization wasn't present. However (of course) the user isn't created in the Kratos database, so the identity of the user at that point is technically
00000000-0000-0000-0000-000000000000
and I can't contact Kratos in the webhook to get the OIDC token. Is there some way that I can either: • Give the webhook the ability to make Github API calls on behalf of the user (given they have completed the OIDC flow with Github as part of Kratos registration) • Get the user's Github organizations some other way (I am not getting the organizations in the
claims
)