Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
main/browser/authentication-main
AuthenticationMainImpl
Class AuthenticationMainImpl
Implements
AuthenticationMain
Index
Constructors
constructor
Methods
$get
Accounts
$get
Session
$logout
$on
Did
Change
Sessions
$register
Authentication
Provider
$unregister
Authentication
Provider
$update
Sessions
get
Sessions
Prompt
is
Access
Allowed
login
Prompt
request
New
Session
select
Session
set
Trusted
Extension
And
Account
Preference
Constructors
constructor
new
AuthenticationMainImpl
(
rpc
:
RPCProtocol
,
container
:
Container
,
)
:
AuthenticationMainImpl
Parameters
rpc
:
RPCProtocol
container
:
Container
Returns
AuthenticationMainImpl
Methods
$get
Accounts
$getAccounts
(
providerId
:
string
,
)
:
Thenable
<
readonly
AuthenticationSessionAccountInformation
[]
>
Parameters
providerId
:
string
Returns
Thenable
<
readonly
AuthenticationSessionAccountInformation
[]
>
$get
Session
$getSession
(
providerId
:
string
,
scopes
:
string
[]
,
extensionId
:
string
,
extensionName
:
string
,
options
:
AuthenticationGetSessionOptions
,
)
:
Promise
<
undefined
|
AuthenticationSession
>
Parameters
providerId
:
string
scopes
:
string
[]
extensionId
:
string
extensionName
:
string
options
:
AuthenticationGetSessionOptions
Returns
Promise
<
undefined
|
AuthenticationSession
>
$logout
$logout
(
providerId
:
string
,
sessionId
:
string
)
:
Promise
<
void
>
Parameters
providerId
:
string
sessionId
:
string
Returns
Promise
<
void
>
$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
,
)
:
Promise
<
void
>
Parameters
id
:
string
label
:
string
supportsMultipleAccounts
:
boolean
Returns
Promise
<
void
>
$unregister
Authentication
Provider
$unregisterAuthenticationProvider
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
$update
Sessions
$updateSessions
(
id
:
string
,
event
:
AuthenticationProviderAuthenticationSessionsChangeEvent
,
)
:
Promise
<
void
>
Parameters
id
:
string
event
:
AuthenticationProviderAuthenticationSessionsChangeEvent
Returns
Promise
<
void
>
Protected
get
Sessions
Prompt
getSessionsPrompt
(
providerId
:
string
,
accountName
:
string
,
providerName
:
string
,
extensionId
:
string
,
extensionName
:
string
,
)
:
Promise
<
boolean
>
Parameters
providerId
:
string
accountName
:
string
providerName
:
string
extensionId
:
string
extensionName
:
string
Returns
Promise
<
boolean
>
Protected
is
Access
Allowed
isAccessAllowed
(
providerId
:
string
,
accountName
:
string
,
extensionId
:
string
,
)
:
Promise
<
boolean
>
Parameters
providerId
:
string
accountName
:
string
extensionId
:
string
Returns
Promise
<
boolean
>
Protected
login
Prompt
loginPrompt
(
providerName
:
string
,
extensionName
:
string
,
recreatingSession
:
boolean
,
detail
?:
string
,
)
:
Promise
<
boolean
>
Parameters
providerName
:
string
extensionName
:
string
recreatingSession
:
boolean
Optional
detail
:
string
Returns
Promise
<
boolean
>
Protected
request
New
Session
requestNewSession
(
providerId
:
string
,
scopes
:
string
[]
,
extensionId
:
string
,
extensionName
:
string
,
)
:
Promise
<
void
>
Parameters
providerId
:
string
scopes
:
string
[]
extensionId
:
string
extensionName
:
string
Returns
Promise
<
void
>
Protected
select
Session
selectSession
(
providerId
:
string
,
providerName
:
string
,
extensionId
:
string
,
extensionName
:
string
,
potentialSessions
:
readonly
AuthenticationSession
[]
,
scopes
:
string
[]
,
clearSessionPreference
:
boolean
,
)
:
Promise
<
AuthenticationSession
>
Parameters
providerId
:
string
providerName
:
string
extensionId
:
string
extensionName
:
string
potentialSessions
:
readonly
AuthenticationSession
[]
scopes
:
string
[]
clearSessionPreference
:
boolean
Returns
Promise
<
AuthenticationSession
>
Protected
set
Trusted
Extension
And
Account
Preference
setTrustedExtensionAndAccountPreference
(
providerId
:
string
,
accountName
:
string
,
extensionId
:
string
,
extensionName
:
string
,
sessionId
:
string
,
)
:
Promise
<
void
>
Parameters
providerId
:
string
accountName
:
string
extensionId
:
string
extensionName
:
string
sessionId
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
$get
Accounts
$get
Session
$logout
$on
Did
Change
Sessions
$register
Authentication
Provider
$unregister
Authentication
Provider
$update
Sessions
get
Sessions
Prompt
is
Access
Allowed
login
Prompt
request
New
Session
select
Session
set
Trusted
Extension
And
Account
Preference
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...