AuthScheme Parameter (Connect-Lakebase Cmdlet)
Specifies the type of authentication to use when connecting to Lakebase.
Syntax
Connect-Lakebase -AuthScheme string
Possible Values
OAuthPKCE, OAuthClientData Type
cstr
Default Value
"OAuthClient"
Remarks
Lakebase supports two authentication schemes:
- OAuthClient uses the OAuth client credentials grant type. This authentication scheme requires you to perform additional configuration on your service principal in order to connect, as described in Setting Up OAuthClient Authentication.
- OAuthPKCE uses the OAuth code grant type with PKCE (Proof Key for Code Exchange) to guard against cross-site request forgery and authorization code injection attacks.
Credentials are provided via OAuthClientId and OAuthClientSecret.