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

File diff suppressed because it is too large Load Diff

View File

@@ -3342,7 +3342,7 @@ func (m *Idp) Validate() error {
// no validation rules for Name
// no validation rules for LogoSrc
// no validation rules for StylingType
// no validation rules for Sequence
@@ -3435,7 +3435,7 @@ func (m *IdpUpdate) Validate() error {
// no validation rules for Name
// no validation rules for LogoSrc
// no validation rules for StylingType
return nil
}
@@ -3580,7 +3580,7 @@ func (m *OidcIdpConfigCreate) Validate() error {
}
}
// no validation rules for LogoSrc
// no validation rules for StylingType
if l := utf8.RuneCountInString(m.GetClientId()); l < 1 || l > 200 {
return OidcIdpConfigCreateValidationError{
@@ -3893,7 +3893,7 @@ func (m *IdpView) Validate() error {
// no validation rules for Name
// no validation rules for LogoSrc
// no validation rules for StylingType
// no validation rules for Sequence

View File

@@ -1948,9 +1948,8 @@
"name": {
"type": "string"
},
"logo_src": {
"type": "string",
"format": "byte"
"styling_type": {
"$ref": "#/definitions/v1IdpStylingType"
},
"oidc_config": {
"$ref": "#/definitions/v1OidcIdpConfig"
@@ -2117,6 +2116,14 @@
],
"default": "IDPCONFIGSTATE_UNSPECIFIED"
},
"v1IdpStylingType": {
"type": "string",
"enum": [
"IDPSTYLINGTYPE_UNSPECIFIED",
"IDPSTYLINGTYPE_GOOGLE"
],
"default": "IDPSTYLINGTYPE_UNSPECIFIED"
},
"v1IdpType": {
"type": "string",
"enum": [
@@ -2135,9 +2142,8 @@
"name": {
"type": "string"
},
"logo_src": {
"type": "string",
"format": "byte"
"styling_type": {
"$ref": "#/definitions/v1IdpStylingType"
}
}
},
@@ -2161,9 +2167,8 @@
"name": {
"type": "string"
},
"logo_src": {
"type": "string",
"format": "byte"
"styling_type": {
"$ref": "#/definitions/v1IdpStylingType"
},
"oidc_config": {
"$ref": "#/definitions/v1OidcIdpConfigView"
@@ -2257,9 +2262,8 @@
"name": {
"type": "string"
},
"logo_src": {
"type": "string",
"format": "byte"
"styling_type": {
"$ref": "#/definitions/v1IdpStylingType"
},
"client_id": {
"type": "string"

View File

@@ -797,7 +797,7 @@ message Idp {
google.protobuf.Timestamp creation_date = 3;
google.protobuf.Timestamp change_date = 4;
string name = 5;
bytes logo_src = 6;
IdpStylingType styling_type = 6;
oneof idp_config {
OidcIdpConfig oidc_config = 7;
}
@@ -807,7 +807,7 @@ message Idp {
message IdpUpdate {
string id = 1 [(validate.rules).string = {min_len: 1}];
string name = 2;
bytes logo_src = 3;
IdpStylingType styling_type = 3;
}
message OidcIdpConfig {
@@ -817,6 +817,11 @@ message OidcIdpConfig {
repeated string scopes = 4;
}
enum IdpStylingType {
IDPSTYLINGTYPE_UNSPECIFIED = 0;
IDPSTYLINGTYPE_GOOGLE = 1;
}
enum IdpState {
IDPCONFIGSTATE_UNSPECIFIED = 0;
IDPCONFIGSTATE_ACTIVE = 1;
@@ -831,7 +836,7 @@ enum OIDCMappingField {
message OidcIdpConfigCreate {
string name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
bytes logo_src = 2;
IdpStylingType styling_type = 2;
string client_id = 3 [(validate.rules).string = {min_len: 1, max_len: 200}];
string client_secret = 4 [(validate.rules).string = {min_len: 1, max_len: 200}];
string issuer = 5 [(validate.rules).string = {min_len: 1, max_len: 200}];
@@ -865,7 +870,7 @@ message IdpView {
google.protobuf.Timestamp creation_date = 3;
google.protobuf.Timestamp change_date = 4;
string name = 5;
bytes logo_src = 6;
IdpStylingType styling_type = 6;
oneof idp_config_view {
OidcIdpConfigView oidc_config = 7;
}