The id of the provider to use
A scope list of permissions requested or a WWW-Authenticate request. These are dependent on the authentication provider.
The AuthenticationGetSessionOptions to use
A thenable that resolves to an authentication session
Get an authentication session matching the desired scopes or request. Rejects if a provider with providerId is not registered, or if the user does not consent to sharing authentication information with the extension. If there are multiple sessions with the same scopes, the user will be shown a quickpick to select which account they would like to use.
Currently, there are only two authentication providers that are contributed from built in extensions to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
The id of the provider to use
A scope list of permissions requested or a WWW-Authenticate request. These are dependent on the authentication provider.
The AuthenticationGetSessionOptions to use
A thenable that resolves to an authentication session
Get an authentication session matching the desired scopes or request. Rejects if a provider with providerId is not registered, or if the user does not consent to sharing authentication information with the extension. If there are multiple sessions with the same scopes, the user will be shown a quickpick to select which account they would like to use.
The id of the provider to use
A scope list of permissions requested or a WWW-Authenticate request. These are dependent on the authentication provider.
Optionaloptions: AuthenticationGetSessionOptionsThe AuthenticationGetSessionOptions to use
A thenable that resolves to an authentication session or undefined if a silent flow was used and no session was found
Get an authentication session matching the desired scopes or satisfying the WWW-Authenticate request. Rejects if a provider with providerId is not registered, or if the user does not consent to sharing authentication information with the extension. If there are multiple sessions with the same scopes, the user will be shown a quickpick to select which account they would like to use.
Currently, there are only two authentication providers that are contributed from built in extensions to VS Code that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.