mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:27:33 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! added first event
This commit is contained in:
@@ -18,7 +18,7 @@ const (
|
||||
IDPTypeOAuth
|
||||
IDPTypeLDAP
|
||||
IDPTypeAzure
|
||||
IDPTypeGitHub
|
||||
IDPTypeGithub
|
||||
IDPTypeGitHubEnterprise
|
||||
IDPTypeGitLab
|
||||
IDPTypeGitLabSelfHosted
|
||||
@@ -93,7 +93,6 @@ type IDPOIDC struct {
|
||||
}
|
||||
|
||||
type JWT struct {
|
||||
IDPConfigID string `json:"idpConfigId"`
|
||||
JWTEndpoint string `json:"jwtEndpoint,omitempty"`
|
||||
Issuer string `json:"issuer,omitempty"`
|
||||
KeysEndpoint string `json:"keysEndpoint,omitempty"`
|
||||
@@ -106,8 +105,6 @@ type IDPJWT struct {
|
||||
}
|
||||
|
||||
type OAuth struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ClientID string `json:"clientId,omitempty"`
|
||||
ClientSecret *crypto.CryptoValue `json:"clientSecret,omitempty"`
|
||||
AuthorizationEndpoint string `json:"authorizationEndpoint,omitempty"`
|
||||
@@ -133,8 +130,6 @@ const (
|
||||
)
|
||||
|
||||
type Azure struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ClientID string `json:"client_id,omitempty"`
|
||||
ClientSecret *crypto.CryptoValue `json:"client_secret,omitempty"`
|
||||
Scopes []string `json:"scopes,omitempty"`
|
||||
@@ -148,8 +143,6 @@ type IDPOAzureAD struct {
|
||||
}
|
||||
|
||||
type Google struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ClientID string `json:"clientId"`
|
||||
ClientSecret *crypto.CryptoValue `json:"clientSecret"`
|
||||
Scopes []string `json:"scopes,omitempty"`
|
||||
@@ -160,6 +153,17 @@ type IDPGoogle struct {
|
||||
Google
|
||||
}
|
||||
|
||||
type Github struct {
|
||||
ClientID string `json:"clientId"`
|
||||
ClientSecret *crypto.CryptoValue `json:"clientSecret"`
|
||||
Scopes []string `json:"scopes,omitempty"`
|
||||
}
|
||||
|
||||
type IDPGithub struct {
|
||||
*IdentityProvider
|
||||
Github
|
||||
}
|
||||
|
||||
// IDPIdentifierCondition is used to help specify a single identity_provider,
|
||||
// it will either be used as the identity_provider ID or identity_provider name,
|
||||
// as identity_provider can be identified either using (instanceID + OrgID + ID) OR (instanceID + OrgID + name)
|
||||
@@ -235,4 +239,5 @@ type IDProviderRepository interface {
|
||||
|
||||
GetOAzureAD(ctx context.Context, id IDPIdentifierCondition, instanceID string, orgID *string) (*IDPOAzureAD, error)
|
||||
GetGoogle(ctx context.Context, id IDPIdentifierCondition, instanceID string, orgID *string) (*IDPGoogle, error)
|
||||
GetGithub(ctx context.Context, id IDPIdentifierCondition, instanceID string, orgID *string) (*IDPGithub, error)
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ func _IDPTypeNoOp() {
|
||||
_ = x[IDPTypeOAuth-(3)]
|
||||
_ = x[IDPTypeLDAP-(4)]
|
||||
_ = x[IDPTypeAzure-(5)]
|
||||
_ = x[IDPTypeGitHub-(6)]
|
||||
_ = x[IDPTypeGithub-(6)]
|
||||
_ = x[IDPTypeGitHubEnterprise-(7)]
|
||||
_ = x[IDPTypeGitLab-(8)]
|
||||
_ = x[IDPTypeGitLabSelfHosted-(9)]
|
||||
@@ -39,7 +39,7 @@ func _IDPTypeNoOp() {
|
||||
_ = x[IDPTypeSAML-(12)]
|
||||
}
|
||||
|
||||
var _IDPTypeValues = []IDPType{IDPTypeUnspecified, IDPTypeOIDC, IDPTypeJWT, IDPTypeOAuth, IDPTypeLDAP, IDPTypeAzure, IDPTypeGitHub, IDPTypeGitHubEnterprise, IDPTypeGitLab, IDPTypeGitLabSelfHosted, IDPTypeGoogle, IDPTypeApple, IDPTypeSAML}
|
||||
var _IDPTypeValues = []IDPType{IDPTypeUnspecified, IDPTypeOIDC, IDPTypeJWT, IDPTypeOAuth, IDPTypeLDAP, IDPTypeAzure, IDPTypeGithub, IDPTypeGitHubEnterprise, IDPTypeGitLab, IDPTypeGitLabSelfHosted, IDPTypeGoogle, IDPTypeApple, IDPTypeSAML}
|
||||
|
||||
var _IDPTypeNameToValueMap = map[string]IDPType{
|
||||
_IDPTypeName[0:11]: IDPTypeUnspecified,
|
||||
@@ -54,8 +54,8 @@ var _IDPTypeNameToValueMap = map[string]IDPType{
|
||||
_IDPTypeLowerName[23:27]: IDPTypeLDAP,
|
||||
_IDPTypeName[27:32]: IDPTypeAzure,
|
||||
_IDPTypeLowerName[27:32]: IDPTypeAzure,
|
||||
_IDPTypeName[32:38]: IDPTypeGitHub,
|
||||
_IDPTypeLowerName[32:38]: IDPTypeGitHub,
|
||||
_IDPTypeName[32:38]: IDPTypeGithub,
|
||||
_IDPTypeLowerName[32:38]: IDPTypeGithub,
|
||||
_IDPTypeName[38:54]: IDPTypeGitHubEnterprise,
|
||||
_IDPTypeLowerName[38:54]: IDPTypeGitHubEnterprise,
|
||||
_IDPTypeName[54:60]: IDPTypeGitLab,
|
||||
|
Reference in New Issue
Block a user