EDataServerUI.CredentialsPrompterImpl¶
- Subclasses:
EDataServerUI.CredentialsPrompterImplOAuth2,EDataServerUI.CredentialsPrompterImplPassword
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when a prompt of ID prompt_id is finished. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class EDataServerUI.CredentialsPrompterImpl(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Credentials prompter implementation base structure. The descendants implement
EDataServerUI.CredentialsPrompterImpl::prompt(), which is used to prompt for credentials. The descendants are automatically registered into anEDataServerUI.CredentialsPrompter.New in version 3.16.
- cancel_prompt(prompt_id)¶
-
Asks the prompt_impl to cancel current prompt, which should have ID prompt_id.
New in version 3.16.
- get_credentials_prompter()¶
- Returns:
- Return type:
Returns an
EDataServerUI.CredentialsPrompterwith which the self is associated.New in version 3.16.
- prompt(prompt_id, auth_source, cred_source, error_text, credentials)¶
- Parameters:
prompt_id (
objectorNone) – a prompt ID to be passed toEDataServerUI.CredentialsPrompterImpl.prompt_finish()auth_source (
EDataServer.Source) – anEDataServer.Source, to prompt the credentials for (the source which asked for credentials)cred_source (
EDataServer.Source) – a parentEDataServer.Source, from which credentials were taken, or should be stored toerror_text (
strorNone) – an optional error text from the previous credentials prompt; can beNonecredentials (
EDataServer.NamedParameters) – credentials, as saved in keyring; can be empty, but notNone
Runs a credentials prompt for the self. The actual prompter implementation receives the prompt through ECredentialsPrompterImplClass::process_prompt(), where the given prompt_id is used for an identification. The prompt is left ‘active’ as long as it is not finished with a call of
EDataServerUI.CredentialsPrompterImpl.prompt_finish(). This should be called even for cancelled prompts. The prompt can be cancelled before it’s processed, using theEDataServerUI.CredentialsPrompterImpl.cancel_prompt().The auth_source can be the same as cred_source, in case the credentials are stored only for that particular source. If the sources share credentials, which can be a case when the auth_source is
Camel.partof a collection, then the cred_stource can be that collection source.New in version 3.16.
- prompt_finish(prompt_id, credentials)¶
- Parameters:
credentials (
EDataServer.NamedParametersorNone) – credentials to use; can beNonefor cancelled prompts
The actual credentials prompt implementation finishes a previously started credentials prompt prompt_id with ECredentialsPrompterImplClass::process_prompt() by a call to this function. This function should be called regardless the prompt was or was not cancelled with
EDataServerUI.CredentialsPrompterImpl.cancel_prompt(). Once the prompt is finished another queued is started, if any pending exists. UseNonecredentials for cancelled prompts, otherwise the credentials are used for authentication of the associatedEDataServer.Source.New in version 3.16.
- do_cancel_prompt(prompt_id) virtual¶
-
Asks the prompt_impl to cancel current prompt, which should have ID prompt_id.
New in version 3.16.
- do_process_prompt(prompt_id, auth_source, cred_source, error_text, credentials) virtual¶
- Parameters:
auth_source (
EDataServer.Source) –cred_source (
EDataServer.Source) –error_text (
str) –credentials (
EDataServer.NamedParameters) –
- do_prompt_finished(prompt_id, credentials) virtual¶
- Parameters:
credentials (
EDataServer.NamedParameters) –
Signal Details¶
- EDataServerUI.CredentialsPrompterImpl.signals.prompt_finished(credentials_prompter_impl, prompt_id, credentials)¶
- Signal Name:
prompt-finished- Flags:
- Parameters:
credentials_prompter_impl (
EDataServerUI.CredentialsPrompterImpl) – The object which received the signalprompt_id (
objectorNone) – an ID of the prompt which was finishedcredentials (
EDataServer.NamedParametersorNone) – entered credentials, orNonefor cancelled prompts
Emitted when a prompt of ID prompt_id is finished.
New in version 3.16.