Use the chrome.passwordsPrivate API to add or remove password data from the settings UI.
Use the chrome.passwordsPrivate API to add or remove password data from the settings UI. * available since Chrome master
(cancel-export-passwords)
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
(change-insecure-credential credential new-password)
Requests to change the password of |credential| to |new_password|. Invokes |callback| or raises an error depending on whether the operation succeeded.
|credential| - The credential whose password should be changed. |new-password| - The new password.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests to change the password of |credential| to |new_password|. Invokes |callback| or raises an error depending on whether the operation succeeded. |credential| - The credential whose password should be changed. |new-password| - The new password. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(change-saved-password ids new-username new-password)
Changes the saved password corresponding to |ids|. Since the password can be stored in Google Account and on device, in this case we want to change the password for accountId and deviceId. Invokes |callback| or raises an error depending on whether the operation succeeded.
|ids| - The ids for the password entry being updated. |new-username| - The new username. |new-password| - The new password.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Changes the saved password corresponding to |ids|. Since the password can be stored in Google Account and on device, in this case we want to change the password for accountId and deviceId. Invokes |callback| or raises an error depending on whether the operation succeeded. |ids| - The ids for the password entry being updated. |new-username| - The new username. |new-password| - The new password. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(export-passwords)
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event. |callback| will be called when the request is started or rejected. If rejected 'runtime.lastError' will be set to 'in-progress' or 'reauth-failed'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event. |callback| will be called when the request is started or rejected. If rejected 'runtime.lastError' will be set to 'in-progress' or 'reauth-failed'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-compromised-credentials)
Requests the latest compromised credentials.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [insecure-credentials] where:
|insecure-credentials| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the latest compromised credentials. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [insecure-credentials] where: |insecure-credentials| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-password-check-status)
Returns the current status of the check via |callback|.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the current status of the check via |callback|. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-password-exception-list)
Returns the list of password exceptions.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [exceptions] where:
|exceptions| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of password exceptions. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [exceptions] where: |exceptions| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-plaintext-insecure-password credential reason)
Requests the plaintext password for |credential|. |callback| gets invoked with the same |credential|, whose |password
field will be set.
|credential| - The insecure credential whose password is being retrieved. |reason| - The reason why the plaintext password is requested.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [credential] where:
|credential| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the plaintext password for |credential|. |callback| gets invoked with the same |credential|, whose |password field will be set. |credential| - The insecure credential whose password is being retrieved. |reason| - The reason why the plaintext password is requested. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [credential] where: |credential| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-plaintext-insecure-password* config credential reason)
(get-saved-password-list)
Returns the list of saved passwords.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of saved passwords. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-weak-credentials)
Requests the latest weak credentials.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [insecure-credentials] where:
|insecure-credentials| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the latest weak credentials. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [insecure-credentials] where: |insecure-credentials| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(import-passwords)
Triggers the Password Manager password import functionality.
Triggers the Password Manager password import functionality.
(is-opted-in-for-account-storage)
Requests the account-storage opt-in state of the current user.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [opted-in] where:
|opted-in| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the account-storage opt-in state of the current user. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [opted-in] where: |opted-in| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(move-password-to-account id)
Moves a password currently stored on the device to being stored in the signed-in, non-syncing Google Account. The result is a no-op if any of these is true: |id| is invalid; |id| corresponds to a password already stored in the account; or the user is not using the account-scoped password storage.
|id| - The id for the password entry being moved.
Moves a password currently stored on the device to being stored in the signed-in, non-syncing Google Account. The result is a no-op if any of these is true: |id| is invalid; |id| corresponds to a password already stored in the account; or the user is not using the account-scoped password storage. |id| - The id for the password entry being moved.
(on-account-storage-opt-in-state-changed* config channel & args)
(on-compromised-credentials-changed* config channel & args)
(on-password-check-status-changed* config channel & args)
(on-password-exceptions-list-changed* config channel & args)
(on-passwords-file-export-progress* config channel & args)
(opt-in-for-account-storage opt-in)
Triggers the opt-in or opt-out flow for the account storage.
|opt-in| - ?
Triggers the opt-in or opt-out flow for the account storage. |opt-in| - ?
(record-passwords-page-access-in-settings)
Function that logs that the Passwords page was accessed from the Chrome Settings WebUI.
Function that logs that the Passwords page was accessed from the Chrome Settings WebUI.
(record-passwords-page-access-in-settings* config)
(remove-insecure-credential credential)
Requests to remove |credential| from the password store. Invokes |callback| on completion.
|credential| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests to remove |credential| from the password store. Invokes |callback| on completion. |credential| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(remove-password-exception id)
Removes the saved password exception corresponding to |id|. If no exception with this id exists, this function is a no-op.
|id| - The id for the exception url entry being removed.
Removes the saved password exception corresponding to |id|. If no exception with this id exists, this function is a no-op. |id| - The id for the exception url entry being removed.
(remove-password-exceptions ids)
Removes the saved password exceptions corresponding to |ids|. If no exception exists for a certain id, that id is ignored. Undoing this operation via undoRemoveSavedPasswordOrException will restore all the removed exceptions in the batch.
|ids| - ?
Removes the saved password exceptions corresponding to |ids|. If no exception exists for a certain id, that id is ignored. Undoing this operation via undoRemoveSavedPasswordOrException will restore all the removed exceptions in the batch. |ids| - ?
(remove-saved-password id)
Removes the saved password corresponding to |id|. If no saved password for this pair exists, this function is a no-op.
|id| - The id for the password entry being removed.
Removes the saved password corresponding to |id|. If no saved password for this pair exists, this function is a no-op. |id| - The id for the password entry being removed.
(remove-saved-passwords ids)
Removes the saved password corresponding to |ids|. If no saved password exists for a certain id, that id is ignored. Undoing this operation via undoRemoveSavedPasswordOrException will restore all the removed passwords in the batch.
|ids| - ?
Removes the saved password corresponding to |ids|. If no saved password exists for a certain id, that id is ignored. Undoing this operation via undoRemoveSavedPasswordOrException will restore all the removed passwords in the batch. |ids| - ?
(request-export-progress-status)
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(request-plaintext-password id reason)
Returns the plaintext password corresponding to |id|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via |callback|.
|id| - The id for the password entry being being retrieved. |reason| - The reason why the plaintext password is requested.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [password] where:
|password| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the plaintext password corresponding to |id|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via |callback|. |id| - The id for the password entry being being retrieved. |reason| - The reason why the plaintext password is requested. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [password] where: |password| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(start-password-check)
Starts a check for insecure passwords. Invokes |callback| on completion.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Starts a check for insecure passwords. Invokes |callback| on completion. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(stop-password-check)
Stops checking for insecure passwords. Invokes |callback| on completion.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Stops checking for insecure passwords. Invokes |callback| on completion. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.passwords-private namespace.
Taps all valid non-deprecated events in chromex.ext.passwords-private namespace.
(tap-on-account-storage-opt-in-state-changed-events channel & args)
Fired when the opt-in state for the account-scoped storage has changed.
Events will be put on the |channel| with signature [::on-account-storage-opt-in-state-changed [opted-in]] where:
|opted-in| - The new opt-in state.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the opt-in state for the account-scoped storage has changed. Events will be put on the |channel| with signature [::on-account-storage-opt-in-state-changed [opted-in]] where: |opted-in| - The new opt-in state. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-compromised-credentials-changed-events channel & args)
Fired when the compromised credentials changed.
Events will be put on the |channel| with signature [::on-compromised-credentials-changed [compromised-credentials]] where:
|compromised-credentials| - The updated compromised credentials.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the compromised credentials changed. Events will be put on the |channel| with signature [::on-compromised-credentials-changed [compromised-credentials]] where: |compromised-credentials| - The updated compromised credentials. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-password-check-status-changed-events channel & args)
Fired when the status of the password check changes.
Events will be put on the |channel| with signature [::on-password-check-status-changed [status]] where:
|status| - The updated status of the password check.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the status of the password check changes. Events will be put on the |channel| with signature [::on-password-check-status-changed [status]] where: |status| - The updated status of the password check. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-password-exceptions-list-changed-events channel & args)
Fired when the password exceptions list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where:
|exceptions| - The updated list of password exceptions.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the password exceptions list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where: |exceptions| - The updated list of password exceptions. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-passwords-file-export-progress-events channel & args)
Fired when the status of the export has changed.
Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where:
|status| - The progress status and an optional UI message.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the status of the export has changed. Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where: |status| - The progress status and an optional UI message. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-saved-passwords-list-changed-events channel & args)
Fired when the saved passwords list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where:
|entries| - The updated list of password entries.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the saved passwords list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where: |entries| - The updated list of password entries. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-weak-credentials-changed-events channel & args)
Fired when the weak credentials changed.
Events will be put on the |channel| with signature [::on-weak-credentials-changed [weak-credentials]] where:
|weak-credentials| - The updated weak credentials.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the weak credentials changed. Events will be put on the |channel| with signature [::on-weak-credentials-changed [weak-credentials]] where: |weak-credentials| - The updated weak credentials. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(undo-remove-saved-password-or-exception)
Undoes the last removal of saved password(s) or exception(s).
Undoes the last removal of saved password(s) or exception(s).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close