mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-08 22:13:00 +00:00
feat: Add CreateInstance endpoint (#9452)
This commit is contained in:
15
internal/api/grpc/authn/v2beta/converter.go
Normal file
15
internal/api/grpc/authn/v2beta/converter.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package authn
|
||||
|
||||
import (
|
||||
"github.com/zitadel/zitadel/internal/domain"
|
||||
authn "github.com/zitadel/zitadel/pkg/grpc/authn/v2beta"
|
||||
)
|
||||
|
||||
func KeyTypeToDomain(t authn.KeyType) domain.AuthNKeyType {
|
||||
switch t {
|
||||
case authn.KeyType_KEY_TYPE_JSON:
|
||||
return domain.AuthNKeyTypeJSON
|
||||
default:
|
||||
return domain.AuthNKeyTypeNONE
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user