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.
Click to show internal directories.
Click to hide internal directories.