Works out which profile applies to a person signing in to an
application, without selecting it: of the profile the application names
(appPasskeyPolicy, #1235) and the profiles the person's groups name
(stsPasskeyPolicy), the lowest precedence (ties by name), else
default.
Parameters
username: string
the person, or '' where not yet known
application: string
the application (its identifier or a client_id),
or '' where none is known
Works out which profile applies to a person signing in to an application, without selecting it: of the profile the application names (
appPasskeyPolicy, #1235) and the profiles the person's groups name (stsPasskeyPolicy), the lowest precedence (ties by name), elsedefault.