Skip to content

Accessing resources based on email domain #138

Answered by aeneasr
bastiW asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bastiW - the optimal way to solve this problem would be as follows:

  1. Configure a post-registration and post-settings web hook
  2. The webhook target should be an API endpoint in your app
  3. In the webhook target you should authenticate the webhook request (e.g. using a static API key) which you configured in step (1)
  4. The webhook target checks the email address and calls Ory's Permission API (Ory Keto) to set up the correct permissions

Hope this helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants