system

package
v2.0.0-...-c383979 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInsecure

func WithInsecure() func() zitadel.Option

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

Types

type Client

type Client struct {
	Connection *zitadel.Connection
	system.SystemServiceClient
}

func NewClient

func NewClient(issuer, api string, source JWTAuthenticationSource, opts ...Option) (*Client, error)

type JWTAuthenticationSource

type JWTAuthenticationSource func() middleware.JWTProfileTokenSource

func JWTProfileFromKey

func JWTProfileFromKey(key []byte, userID string) JWTAuthenticationSource

JWTProfileFromKey creates a JWTAuthenticationSource (oauth2.TokensSource) from the provided key (and userID) to authenticate against the SystemAPI

func JWTProfileFromPath

func JWTProfileFromPath(keyPath, userID string) JWTAuthenticationSource

JWTProfileFromPath reads the key at the provided path and creates a JWTAuthenticationSource (oauth2.TokensSource) to authenticate against the SystemAPI

type Option

type Option func() zitadel.Option

Jump to

Keyboard shortcuts

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