mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:47:33 +00:00
fix: IDP login button styles (#869)
* fix: styling type on idp * fix: google styling * fix: google styling * fix: google styling * fix: remove logo src from angular * fix: pr requests * fix drop column migration * fix: drop column migration * fix: grant id
This commit is contained in:
@@ -10,7 +10,7 @@ type IDPConfig struct {
|
||||
IDPConfigID string
|
||||
Type IdpConfigType
|
||||
Name string
|
||||
LogoSrc []byte
|
||||
StylingType IDPStylingType
|
||||
State IDPConfigState
|
||||
OIDCConfig *OIDCIDPConfig
|
||||
}
|
||||
@@ -42,6 +42,13 @@ const (
|
||||
IDPConfigStateRemoved
|
||||
)
|
||||
|
||||
type IDPStylingType int32
|
||||
|
||||
const (
|
||||
IDPStylingTypeUnspecified IDPStylingType = iota
|
||||
IDPStylingTypeGoogle
|
||||
)
|
||||
|
||||
type OIDCMappingField int32
|
||||
|
||||
const (
|
||||
@@ -82,3 +89,12 @@ func (oi *OIDCIDPConfig) CryptSecret(crypt crypto.Crypto) error {
|
||||
oi.ClientSecret = cryptedSecret
|
||||
return nil
|
||||
}
|
||||
|
||||
func (st IDPStylingType) GetCSSClass() string {
|
||||
switch st {
|
||||
case IDPStylingTypeGoogle:
|
||||
return "google"
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ type IDPConfigView struct {
|
||||
AggregateID string
|
||||
IDPConfigID string
|
||||
Name string
|
||||
LogoSrc []byte
|
||||
StylingType IDPStylingType
|
||||
State IDPConfigState
|
||||
CreationDate time.Time
|
||||
ChangeDate time.Time
|
||||
|
@@ -10,6 +10,7 @@ type IDPProviderView struct {
|
||||
IDPConfigID string
|
||||
IDPProviderType IDPProviderType
|
||||
Name string
|
||||
StylingType IDPStylingType
|
||||
IDPConfigType IdpConfigType
|
||||
IDPState IDPConfigState
|
||||
|
||||
|
Reference in New Issue
Block a user