TypeError When Updating Connection Password Settings
This article addresses an error that occurs when attempting to update connection password settings within the dashboard.
TypeError: can’t access property “password”, this.connection.options.authentication_methods is undefined.
- Dashboard
- Connection settings
- Password configuration
The issue originates from a malformed or incomplete connection object, specifically where the authentication methods are not properly defined.
The following is a connection object that results in this error because it is missing the options object entirely.
{
"id": "...",
"strategy": "auth0",
"name": "Username-Password-Authentication",
"is_domain_connection": false,
"authentication": { "active": true },
"connected_accounts": { "active": false },
"enabled_clients": [
...
],
"realms": ["Username-Password-Authentication"]
}
To resolve this issue, use the Management API to verify and update the connection object.
- Perform a GET request using the connection ID via the Get a connection endpoint to inspect the current configuration.
- Update the password history or relevant options using the Update a connection PATCH method.
The following is an example of a connection object with the correct schema:
{
"id": "...",
"options": {
"mfa": {
"active": true,
"return_enroll_settings": true
},
"import_mode": false,
"configuration": {},
"customScripts": {
...},
"passwordPolicy": "good",
"passkey_options": {
"challenge_ui": "both",
"local_enrollment_enabled": true,
"progressive_enrollment_enabled": true
},
"password_history": {
"size": 5,
"enable": false
},
"strategy_version": 2,
"password_dictionary": {
"enable": false,
"dictionary": []
},
"authentication_methods": {
"passkey": {
"enabled": true
},
"password": {
"enabled": true
}
},
"brute_force_protection": true,
"password_no_personal_info": {
"enable": false
},
"password_complexity_options": {
"min_length": 1z