ConfigureEntraAuthenticationOptions interface
Options for configuring Entra ID authentication with Sequelize.
Properties
| fallback |
Fallback username to use when the access token does not contain a usable The database username is resolved in the following order:
If none of these values are available, an error is thrown because the username cannot be determined. |
Property Details
fallbackUsername
Fallback username to use when the access token does not contain a usable upn or appid claim.
The database username is resolved in the following order:
upnclaim from the access token (if present).appidclaim from the access token (if present).- This
fallbackUsernameoption (if provided). - The
PGUSERenvironment variable (process.env.PGUSER), if set.
If none of these values are available, an error is thrown because the username cannot be determined.
fallbackUsername?: string
Property Value
string