mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-08 08:02:35 +00:00
16 lines
319 B
Go
16 lines
319 B
Go
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
|
|
}
|
|
}
|