mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +00:00
fix(grpc): return CredentialCreationData in webauthn public key (#1075)
This commit is contained in:
parent
077a9a628e
commit
12f8c7202c
@ -431,7 +431,7 @@ func userChangesToAPI(changes *usr_model.UserChanges) (_ []*auth.Change) {
|
|||||||
func verifyWebAuthNFromModel(u2f *usr_model.WebAuthNToken) *auth.WebAuthNResponse {
|
func verifyWebAuthNFromModel(u2f *usr_model.WebAuthNToken) *auth.WebAuthNResponse {
|
||||||
return &auth.WebAuthNResponse{
|
return &auth.WebAuthNResponse{
|
||||||
Id: u2f.WebAuthNTokenID,
|
Id: u2f.WebAuthNTokenID,
|
||||||
PublicKey: u2f.PublicKey,
|
PublicKey: u2f.CredentialCreationData,
|
||||||
State: mfaStateFromModel(u2f.State),
|
State: mfaStateFromModel(u2f.State),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1316,6 +1316,7 @@ func (es *UserEventstore) AddU2F(ctx context.Context, userID string) (*usr_model
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
webAuthN.WebAuthNTokenID = tokenID
|
webAuthN.WebAuthNTokenID = tokenID
|
||||||
|
webAuthN.State = usr_model.MFAStateNotReady
|
||||||
repoUser := model.UserFromModel(user)
|
repoUser := model.UserFromModel(user)
|
||||||
repoWebAuthN := model.WebAuthNFromModel(webAuthN)
|
repoWebAuthN := model.WebAuthNFromModel(webAuthN)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user