keys

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZitadelKeyEnvelope

type ZitadelKeyEnvelope struct {
	Type     string `json:"type"`
	KeyID    string `json:"keyId"`
	Key      string `json:"key"`
	ClientID string `json:"clientId"` // application keys
	UserID   string `json:"userId"`   // serviceaccount keys
	AppID    string `json:"appId"`
}

ZitadelKeyEnvelope is the JSON structure of a ZITADEL key file. application: {"type":"application","keyId":"...","key":"...","clientId":"...","appId":"..."} serviceaccount: {"type":"serviceaccount","keyId":"...","key":"...","userId":"..."}

func ParseZitadelKeyEnvelope

func ParseZitadelKeyEnvelope(rawJSON string) (ZitadelKeyEnvelope, any, error)

ParseZitadelKeyEnvelope parses a ZITADEL key JSON and returns the envelope metadata and the parsed private key.

Jump to

Keyboard shortcuts

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