mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +00:00
5819924275
* device auth: implement the write events * add grant type device code * fix(init): check if default value implements stringer --------- Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
20 lines
448 B
Go
20 lines
448 B
Go
package deviceauth
|
|
|
|
import "github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
const (
|
|
AggregateType = "device_auth"
|
|
AggregateVersion = "v1"
|
|
)
|
|
|
|
func NewAggregate(aggrID, instanceID string) *eventstore.Aggregate {
|
|
return &eventstore.Aggregate{
|
|
ID: aggrID,
|
|
Type: AggregateType,
|
|
// we use the id because we don't know the resource owner yet
|
|
ResourceOwner: instanceID,
|
|
InstanceID: instanceID,
|
|
Version: AggregateVersion,
|
|
}
|
|
}
|