mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 02:23:40 +00:00
744185449e
* introspect * testingapplication key * date * client keys * fix client keys * fix client keys * access tokens only for users * AuthMethodPrivateKeyJWT * client keys * set introspection info correctly * managae apis * update oidc pkg * cleanup * merge msater * set current sequence in migration * set current sequence in migration * set current sequence in migration * Apply suggestions from code review Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> * DeleteAuthNKeysByObjectID * ensure authn keys uptodate * update oidc version * merge master * merge master Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
29 lines
450 B
Go
29 lines
450 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/caos/zitadel/internal/eventstore/models"
|
|
key_model "github.com/caos/zitadel/internal/key/model"
|
|
)
|
|
|
|
type Machine struct {
|
|
models.ObjectRoot
|
|
|
|
Name string
|
|
Description string
|
|
}
|
|
|
|
func (sa *Machine) IsValid() bool {
|
|
return sa.Name != ""
|
|
}
|
|
|
|
type MachineKey struct {
|
|
models.ObjectRoot
|
|
|
|
KeyID string
|
|
Type key_model.AuthNKeyType
|
|
ExpirationDate time.Time
|
|
PrivateKey []byte
|
|
}
|