zitadel

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScopeProjectID

func ScopeProjectID(projectID string) string

ScopeProjectID will add the requested projectID to the audience of the access and id token deprecated: use [client.ScopeProjectID]

func ScopeZitadelAPI

func ScopeZitadelAPI() string

ScopeZitadelAPI adds the ProjectID of the ZITADEL Project deprecated: use [client.ScopeZitadelAPI]

func WithCustomURL

func WithCustomURL(issuer, api string) func(*Connection) error

WithCustomURL replaces the standard issuer (https://issuer.zitadel.ch) and api endpoint (api.zitadel.ch:443)

func WithInsecure

func WithInsecure() func(*Connection) error

WithInsecure disables transport security for the client connection use only when absolutely necessary (local development)

func WithJWTProfileTokenSource

func WithJWTProfileTokenSource(provider middleware.JWTProfileTokenSource) func(*Connection) error

WithJWTProfileTokenSource sets the provider used for the authentication if not set, the key file will be read from the path set in env var ZITADEL_KEY_PATH

func WithOrgID

func WithOrgID(orgID string) func(*Connection) error

WithOrgID sets the organization context (where the api calls are executed) if not set the resource owner (organization) of the calling user will be used

func WithStreamInterceptors

func WithStreamInterceptors(interceptors ...grpc.StreamClientInterceptor) func(*Connection) error

WithStreamInterceptors adds non ZITADEL specific interceptors to the connection

func WithUnaryInterceptors

func WithUnaryInterceptors(interceptors ...grpc.UnaryClientInterceptor) func(*Connection) error

WithUnaryInterceptors adds non ZITADEL specific interceptors to the connection

Types

type Connection

type Connection struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(ctx context.Context, issuer, api string, scopes []string, options ...Option) (*Connection, error)

type Option

type Option func(*Connection) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL