Hi, is there a way to abort registration / login o...
# talk-kratos
a
Hi, is there a way to abort registration / login on ory-kratos if the provided claims of a OIDC-Provider not meet some conditions? Lets say i have multiple clients that want to use microsoft social sign in. Each of this clients has its own azure tenant. I can decide that identities coming from different azure tenants with the
iss
claim in the token (https://learn.microsoft.com/en-us/azure/active-directory/develop/id-tokens). How can i restrict registration / login for "unknown" tenants? Is something like this possible within hooks?
@magnificent-energy-493 Sorry for the direct ping, but it some kind of behaviour possible?
m
Hello @ambitious-solstice-89744 Sorry if was out of office for vacation. I think there is definitely some way to solve this. Most likely in your frontend code, you can redirect the user to an info page if the claim does not match.