Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
common/plugin-api-rpc
AuthenticationMain
Interface AuthenticationMain
interface
AuthenticationMain
{
$getAccounts
(
providerId
:
string
,
)
:
Thenable
<
readonly
AuthenticationSessionAccountInformation
[]
>
;
$getSession
(
providerId
:
string
,
scopes
:
readonly
string
[]
,
extensionId
:
string
,
extensionName
:
string
,
options
:
AuthenticationGetSessionOptions
,
)
:
Promise
<
undefined
|
AuthenticationSession
>
;
$onDidChangeSessions
(
providerId
:
string
,
event
:
AuthenticationProviderAuthenticationSessionsChangeEvent
,
)
:
void
;
$registerAuthenticationProvider
(
id
:
string
,
label
:
string
,
supportsMultipleAccounts
:
boolean
,
)
:
void
;
$unregisterAuthenticationProvider
(
id
:
string
)
:
void
;
}
Implemented by
AuthenticationMainImpl
Index
Methods
$get
Accounts
$get
Session
$on
Did
Change
Sessions
$register
Authentication
Provider
$unregister
Authentication
Provider
Methods
$get
Accounts
$getAccounts
(
providerId
:
string
,
)
:
Thenable
<
readonly
AuthenticationSessionAccountInformation
[]
>
Parameters
providerId
:
string
Returns
Thenable
<
readonly
AuthenticationSessionAccountInformation
[]
>
$get
Session
$getSession
(
providerId
:
string
,
scopes
:
readonly
string
[]
,
extensionId
:
string
,
extensionName
:
string
,
options
:
AuthenticationGetSessionOptions
,
)
:
Promise
<
undefined
|
AuthenticationSession
>
Parameters
providerId
:
string
scopes
:
readonly
string
[]
extensionId
:
string
extensionName
:
string
options
:
AuthenticationGetSessionOptions
Returns
Promise
<
undefined
|
AuthenticationSession
>
$on
Did
Change
Sessions
$onDidChangeSessions
(
providerId
:
string
,
event
:
AuthenticationProviderAuthenticationSessionsChangeEvent
,
)
:
void
Parameters
providerId
:
string
event
:
AuthenticationProviderAuthenticationSessionsChangeEvent
Returns
void
$register
Authentication
Provider
$registerAuthenticationProvider
(
id
:
string
,
label
:
string
,
supportsMultipleAccounts
:
boolean
,
)
:
void
Parameters
id
:
string
label
:
string
supportsMultipleAccounts
:
boolean
Returns
void
$unregister
Authentication
Provider
$unregisterAuthenticationProvider
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
$get
Accounts
$get
Session
$on
Did
Change
Sessions
$register
Authentication
Provider
$unregister
Authentication
Provider
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...