mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 12:17:24 +00:00

* 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>
20 lines
533 B
Go
20 lines
533 B
Go
package auth
|
|
|
|
import (
|
|
"github.com/caos/logging"
|
|
"github.com/golang/protobuf/ptypes"
|
|
|
|
usr_model "github.com/caos/zitadel/internal/user/model"
|
|
"github.com/caos/zitadel/pkg/grpc/auth"
|
|
)
|
|
|
|
func machineViewFromModel(machine *usr_model.MachineView) *auth.MachineView {
|
|
lastKeyAdded, err := ptypes.TimestampProto(machine.LastKeyAdded)
|
|
logging.Log("MANAG-wGcAQ").OnError(err).Debug("unable to parse date")
|
|
return &auth.MachineView{
|
|
Description: machine.Description,
|
|
Name: machine.Name,
|
|
LastKeyAdded: lastKeyAdded,
|
|
}
|
|
}
|