Share via


SSHExtensions.WithSSHCertificateAuthenticationScheme Method

Definition

Overloads

WithSSHCertificateAuthenticationScheme(AcquireTokenInteractiveParameterBuilder, String, String)

Instructs AAD to return an SSH certificate instead of a Bearer token. The SSH certificate (not the same as public / private key pair used by SSH), can be used to securely deploy a public SSH key to a machine. See https://aka.ms/msal-net-ssh for details.

WithSSHCertificateAuthenticationScheme(AcquireTokenSilentParameterBuilder, String, String)

Instructs AAD to return an SSH certificate instead of a Bearer token. Attempts to retrieve the certificate from the token cache, and if one is not found, attempts to acquire one silently, using the refresh token. See https://aka.ms/msal-net-ssh for details.

WithSSHCertificateAuthenticationScheme(AcquireTokenInteractiveParameterBuilder, String, String)

Instructs AAD to return an SSH certificate instead of a Bearer token. The SSH certificate (not the same as public / private key pair used by SSH), can be used to securely deploy a public SSH key to a machine. See https://aka.ms/msal-net-ssh for details.

public static Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithSSHCertificateAuthenticationScheme (this Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder builder, string publicKeyJwk, string keyId);
static member WithSSHCertificateAuthenticationScheme : Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder * string * string -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
<Extension()>
Public Function WithSSHCertificateAuthenticationScheme (builder As AcquireTokenInteractiveParameterBuilder, publicKeyJwk As String, keyId As String) As AcquireTokenInteractiveParameterBuilder

Parameters

builder
AcquireTokenInteractiveParameterBuilder

Interactive authentication builder

publicKeyJwk
String

The public SSH key in JWK format (https://tools.ietf.org/html/rfc7517). Currently only RSA is supported, and the JWK should contain only the RSA modulus and exponent

keyId
String

A key identifier, it can be in any format. Used to distinguish between different keys when fetching an SSH certificate from the token cache.

Returns

Applies to

WithSSHCertificateAuthenticationScheme(AcquireTokenSilentParameterBuilder, String, String)

Instructs AAD to return an SSH certificate instead of a Bearer token. Attempts to retrieve the certificate from the token cache, and if one is not found, attempts to acquire one silently, using the refresh token. See https://aka.ms/msal-net-ssh for details.

public static Microsoft.Identity.Client.AcquireTokenSilentParameterBuilder WithSSHCertificateAuthenticationScheme (this Microsoft.Identity.Client.AcquireTokenSilentParameterBuilder builder, string publicKeyJwk, string keyId);
static member WithSSHCertificateAuthenticationScheme : Microsoft.Identity.Client.AcquireTokenSilentParameterBuilder * string * string -> Microsoft.Identity.Client.AcquireTokenSilentParameterBuilder
<Extension()>
Public Function WithSSHCertificateAuthenticationScheme (builder As AcquireTokenSilentParameterBuilder, publicKeyJwk As String, keyId As String) As AcquireTokenSilentParameterBuilder

Parameters

builder
AcquireTokenSilentParameterBuilder

Silent authentication builder

publicKeyJwk
String

The public SSH key in JWK format (https://tools.ietf.org/html/rfc7517). Currently only RSA is supported, and the JWK should contain only the RSA modulus and exponent

keyId
String

Returns

Remarks

The same keyID must be used to distinguish between various

Applies to