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:
Fabi
2020-10-19 17:10:02 +02:00
committed by GitHub
parent bb9747923c
commit 4eb380a825
43 changed files with 19230 additions and 10514 deletions

View File

@@ -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 ""
}
}

View File

@@ -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

View File

@@ -10,6 +10,7 @@ type IDPProviderView struct {
IDPConfigID string
IDPProviderType IDPProviderType
Name string
StylingType IDPStylingType
IDPConfigType IdpConfigType
IDPState IDPConfigState