This message was deleted.
# general
m
This message was deleted.
s
The docs page explains what fields are considered privileged, and only for those you need to have a privileged session
p
So only traits marked as identifiers are considered privileged? Or are
username
and
email
hardcoded privileged traits? When I try to update a custom trait like
last_name
using a
profile
settings flow, I have to send the values of all the schema traits. Otherwise, the request will fail with a 400 error (e.g. "Property email is missing" if I don't include the email trait in the request). If I include all the fields, even if none of them have changed, I get a 403 error ("The requested action was forbidden"). What is the proper way to update the profile of a user? Thanks, Patrik.
l
There is a new setting to skip 2FA for settings (which I know is different from privileged sessions, but similar to your GitHub example)
p
I'm not using Ory Network (I assume the screenshot comes from there), and I'm not even using 2FA for now. My initial idea is just to request the user to re-authenticate when they want to change any sensitive field (and not all of them), but it seems like I don't understand how privileged sessions and the settings flow work 😞
s
the fields are derived from the schema metadata, essentially how you set a field to be the password identifier
I vaguely remember some similar issues with casing, because we lower-case all identifiers, so you need to submit the values the same way you get them from Kratos
but it could very well be that there is some other bug
l
s
ah true, even your bug @limited-photographer-61008 😂
😅 1
p
I'm not sure that issue is related to my question. Anyway, I'll take a look at the code and I'll open a GitHub issue if I see anything relevant or if I cannot figure it out. Thanks!