Hi! Im working on a project that has two identity ...
# talk-kratos
d
Hi! Im working on a project that has two identity schemas:
user
and
admin
. The user is for the app and the admin is to login into an web admin dashboard. I configured the auth for the app and it works fine. However, whenever I try to login in my admin dashboard the selfservice login is using the default schema:
user
. Is there a way to select the identity schema that you want to use for a selfservice? If not, what are my alternatives?
@magnificent-energy-493 any idea?
ping: @high-optician-2097 @damp-sunset-69236 any idea?
h
there's a discussion / issue about this on github, but i'm on my phone
👀 1
d
is this one?
So its not possible. what would be the solution then? Having two different instances/deployments of kratos and each of them with a different default schema?
there's a discussion / issue about this on github, but i'm on my phone
feel free to reply on monday if you are off duty
h
not yet, but we accept PRs for such a feature! would you be open to work on it?
🤔 1
d
I may be able to work on a PR but what would be the best approach for solving this switching id schemas issue? Having multiple instances can fix it but it creates redundancy. Would it be a good approach to be able to initiate a login or registration flow using the admin api?
h
I think we should add a field to the schemas besides id and url, something like ‚registration_enabled: true‘ indicating that it can be used during registration, and then add a query parameter to the registration eg ‚schema_id=…‘ which then can be used to initiate the flow with this registration type. WDYT?
👍 1
d
Sounds like a good idea. The query parameter will also be added to the login flow so its possible to create and login using a particular schema right?
h
exactly :)
d
Nice! I will try to work something out in the next days but let's see 🤞🤞