Hello all. is it possible to get the name of the O...
# talk-kratos
f
Hello all. is it possible to get the name of the OIDC provider that the user used to log in through an active session?
{
"id":
"_6b10a02d-ef2d-45b2-8d80-6d5217d88459_",
"active": _true_,
"expires_at":
"_2022-10-07T08:48:18.237231Z_",
"authenticated_at":
"_2022-10-06T08:48:18.24449Z_",
"authenticator_assurance_level":
"_aal1_",
"authentication_methods":
[
{
"method":
"_oidc_",
"aal":
"_aal1_",
"completed_at":
"_2022-10-06T08:48:18.237397259Z_"
}
],
"issued_at":
"_2022-10-06T08:48:18.237231Z_",
"identity":
{
"id":
"_fc458dd7-d152-4302-aeec-e9abdc2275ce_",
"schema_id":
"_identity_v0_",
"schema_url":
"_<http://localhost:4200/api/auth/schemas/aWRlbnRpdHlfdjA>_",
"state":
"_active_",
"traits":
{
"email":
"_<mailto:abc@def.de|abc@def.de>_"
},
"verifiable_addresses":
[
{
"id":
"_d17b06f1-3a5e-4e84-a101-60209dc89356_",
"value":
"_<mailto:abc@def.de|abc@def.de>_",
"verified": _false_,
"via":
"_email_",
"status":
"_sent_",
"created_at":
"_2022-10-06T08:49:48.983285Z_",
"updated_at":
"_2022-10-06T08:49:48.983285Z_"
}
],
"recovery_addresses":
[
{
"id":
"_87502ea4-29e4-4441-9d92-37a1f7670093_",
"value":
"_<mailto:abc@def.de|abc@def.de>_",
"via":
"_email_",
"created_at":
"_2022-10-06T08:49:48.983866Z_",
"updated_at":
"_2022-10-06T08:49:48.983866Z_"
}
],
"metadata_public": _null_,
"created_at":
"_2022-10-06T08:48:18.225216Z_",
"updated_at":
"_2022-10-06T08:48:18.225216Z_"
}
}
The current session do not have the information in it. My idea were to add something like
provider
and
inUse
to
authentication_methods
or
current_authentication
next to
authentication_methods
. What do you think about that?