mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:07:31 +00:00
fix: v2 human command (#3435)
* add/register human command done * validations * crypto * move clientid * keys * fix: clientID * remove v2 package * tests * tests running * revert old code * instance domain from ctx * chore: rename zitadel app ids * comments * fix: test
This commit is contained in:
@@ -58,6 +58,22 @@ func NewAPIConfigAddedEvent(
|
||||
}
|
||||
}
|
||||
|
||||
func (e *APIConfigAddedEvent) Validate(cmd eventstore.Command) bool {
|
||||
c, ok := cmd.(*APIConfigAddedEvent)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
|
||||
if e.AppID != c.AppID {
|
||||
return false
|
||||
}
|
||||
if e.AuthMethodType != c.AuthMethodType {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func APIConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error) {
|
||||
e := &APIConfigAddedEvent{
|
||||
BaseEvent: *eventstore.BaseEventFromRepo(event),
|
||||
|
Reference in New Issue
Block a user