package
3.84.1
Repository: https://github.com/ydb-platform/ydb-go-sdk.git
Documentation: pkg.go.dev

# Functions

GetSupportedOauth2TokenExchangeJwtAlgorithms returns supported algorithms for initializing OAuth 2.0 token exchange protocol credentials from config file.
NewAccessTokenCredentials makes access token credentials object Passed options redefines default values of credentials object internal fields.
NewAnonymousCredentials makes anonymous credentials object Passed options redefines default values of credentials object internal fields.
NewFixedTokenSource makes fixed token source for OAuth 2.0 token exchange credentials.
NewJWTTokenSource makes JWT token source for OAuth 2.0 token exchange credentials.
NewOauth2TokenExchangeCredentials makes OAuth 2.0 token exchange protocol credentials object https://www.rfc-editor.org/rfc/rfc8693.
NewOauth2TokenExchangeCredentialsFile makes OAuth 2.0 token exchange protocol credentials object from config file https://www.rfc-editor.org/rfc/rfc8693 Config file must be a valid json file Fields of json file grant-type: [string] Grant type option (default: "urn:ietf:params:oauth:grant-type:token-exchange") res: [string | list of strings] Resource option (optional) aud: [string | list of strings] Audience option for token exchange request (optional) scope: [string | list of strings] Scope option (optional) requested-token-type: [string] Requested token type option (default: "urn:ietf:params:oauth:token-type:access_token") subject-credentials: [creds_json] Subject credentials options (optional) actor-credentials: [creds_json] Actor credentials options (optional) token-endpoint: [string] Token endpoint Fields of creds_json (JWT): type: [string] Token source type.
NewStaticCredentials makes static credentials object.
ActorTokenSource.
No description provided by the author
PrivateKey For EC signing methods: ES256, ES384, ES512.
PrivateKey For EC signing methods: ES256, ES384, ES512.
ActorTokenSource.
SubjectTokenSource.
GrantType.
WithGrpcDialOptions option append to static credentials object GRPC dial options.
Key For HMAC signing methods: HS256, HS384, HS512.
Key For HMAC signing methods: HS256, HS384, HS512.
Key For HMAC signing methods: HS256, HS384, HS512.
Key For HMAC signing methods: HS256, HS384, HS512.
ID.
Issuer.
ActorTokenSource.
SubjectTokenSource.
KeyID.
PrivateKey.
RequestedTokenType.
RequestTimeout.
Resource.
PrivateKey For RSA signing methods: RS256, RS384, RS512, PS256, PS384, PS512.
PrivateKey For RSA signing methods: RS256, RS384, RS512, PS256, PS384, PS512.
Scope.
SigningMethod.
SigningMethod.
WithSourceInfo option append to credentials object the source info for reporting source info details on error case.
Subject.
SubjectTokenSource.
SyncExchangeTimeout.
TokenEndpoint.
TokenTTL.

# Interfaces

Credentials is an interface of YDB credentials required for connect with YDB.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author