CertificateManager.BuildPrivateKeyJwt method (1 of 2)
Builds a Private Key JWT for client authentication using the specified certificate.
public static string BuildPrivateKeyJwt(SecurityKey key, string clientId, string tokenEndpoint)
| parameter | description |
|---|---|
| key | The security key (X509SecurityKey or JsonWebKey) to sign the JWT. |
| clientId | The client ID (issuer and subject) for the JWT. |
| tokenEndpoint | The token endpoint URL (audience) for the JWT. |
Return Value
The generated Private Key JWT as a string.
See Also
- class CertificateManager
- namespace Kestrun.Certificates
CertificateManager.BuildPrivateKeyJwt method (2 of 2)
Builds a Private Key JWT for client authentication using the specified X509 certificate.
public static string BuildPrivateKeyJwt(X509Certificate2 certificate, string clientId,
string tokenEndpoint)
| parameter | description |
|---|---|
| certificate | The X509 certificate containing the private key. |
| clientId | The client ID (issuer and subject) for the JWT. |
| tokenEndpoint | The token endpoint URL (audience) for the JWT. |
Return Value
The generated Private Key JWT as a string.
See Also
- class CertificateManager
- namespace Kestrun.Certificates