@@ -3,54 +3,55 @@ package keycloak
3
3
import (
4
4
"context"
5
5
"fmt"
6
+ "github.com/mrparkers/terraform-provider-keycloak/keycloak/types"
6
7
"reflect"
7
8
)
8
9
9
10
type IdentityProviderConfig struct {
10
- Key string `json:"key,omitempty"`
11
- HostIp string `json:"hostIp,omitempty"`
12
- UseJwksUrl KeycloakBoolQuoted `json:"useJwksUrl,omitempty"`
13
- JwksUrl string `json:"jwksUrl,omitempty"`
14
- ClientId string `json:"clientId,omitempty"`
15
- ClientSecret string `json:"clientSecret,omitempty"`
16
- DisableUserInfo KeycloakBoolQuoted `json:"disableUserInfo"`
17
- UserInfoUrl string `json:"userInfoUrl,omitempty"`
18
- HideOnLoginPage KeycloakBoolQuoted `json:"hideOnLoginPage"`
19
- NameIDPolicyFormat string `json:"nameIDPolicyFormat,omitempty"`
20
- EntityId string `json:"entityId,omitempty"`
21
- SingleLogoutServiceUrl string `json:"singleLogoutServiceUrl,omitempty"`
22
- SingleSignOnServiceUrl string `json:"singleSignOnServiceUrl,omitempty"`
23
- SigningCertificate string `json:"signingCertificate,omitempty"`
24
- SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"`
25
- XmlSigKeyInfoKeyNameTransformer string `json:"xmlSigKeyInfoKeyNameTransformer,omitempty"`
26
- PostBindingAuthnRequest KeycloakBoolQuoted `json:"postBindingAuthnRequest,omitempty"`
27
- PostBindingResponse KeycloakBoolQuoted `json:"postBindingResponse,omitempty"`
28
- PostBindingLogout KeycloakBoolQuoted `json:"postBindingLogout,omitempty"`
29
- ForceAuthn KeycloakBoolQuoted `json:"forceAuthn,omitempty"`
30
- WantAuthnRequestsSigned KeycloakBoolQuoted `json:"wantAuthnRequestsSigned,omitempty"`
31
- WantAssertionsSigned KeycloakBoolQuoted `json:"wantAssertionsSigned,omitempty"`
32
- WantAssertionsEncrypted KeycloakBoolQuoted `json:"wantAssertionsEncrypted,omitempty"`
33
- BackchannelSupported KeycloakBoolQuoted `json:"backchannelSupported,omitempty"`
34
- ValidateSignature KeycloakBoolQuoted `json:"validateSignature,omitempty"`
35
- AuthorizationUrl string `json:"authorizationUrl,omitempty"`
36
- TokenUrl string `json:"tokenUrl,omitempty"`
37
- LoginHint string `json:"loginHint,omitempty"`
38
- UILocales KeycloakBoolQuoted `json:"uiLocales,omitempty"`
39
- LogoutUrl string `json:"logoutUrl,omitempty"`
40
- DefaultScope string `json:"defaultScope,omitempty"`
41
- AcceptsPromptNoneForwFrmClt KeycloakBoolQuoted `json:"acceptsPromptNoneForwardFromClient,omitempty"`
42
- HostedDomain string `json:"hostedDomain,omitempty"`
43
- UserIp KeycloakBoolQuoted `json:"userIp,omitempty"`
44
- OfflineAccess KeycloakBoolQuoted `json:"offlineAccess,omitempty"`
45
- PrincipalType string `json:"principalType,omitempty"`
46
- PrincipalAttribute string `json:"principalAttribute,omitempty"`
47
- GuiOrder string `json:"guiOrder,omitempty"`
48
- SyncMode string `json:"syncMode,omitempty"`
49
- ExtraConfig map [string ]interface {} `json:"-"`
50
- AuthnContextClassRefs KeycloakSliceQuoted `json:"authnContextClassRefs,omitempty"`
51
- AuthnContextComparisonType string `json:"authnContextComparisonType,omitempty"`
52
- AuthnContextDeclRefs KeycloakSliceQuoted `json:"authnContextDeclRefs,omitempty"`
53
- Issuer string `json:"issuer,omitempty"`
11
+ Key string `json:"key,omitempty"`
12
+ HostIp string `json:"hostIp,omitempty"`
13
+ UseJwksUrl types. KeycloakBoolQuoted `json:"useJwksUrl,omitempty"`
14
+ JwksUrl string `json:"jwksUrl,omitempty"`
15
+ ClientId string `json:"clientId,omitempty"`
16
+ ClientSecret string `json:"clientSecret,omitempty"`
17
+ DisableUserInfo types. KeycloakBoolQuoted `json:"disableUserInfo"`
18
+ UserInfoUrl string `json:"userInfoUrl,omitempty"`
19
+ HideOnLoginPage types. KeycloakBoolQuoted `json:"hideOnLoginPage"`
20
+ NameIDPolicyFormat string `json:"nameIDPolicyFormat,omitempty"`
21
+ EntityId string `json:"entityId,omitempty"`
22
+ SingleLogoutServiceUrl string `json:"singleLogoutServiceUrl,omitempty"`
23
+ SingleSignOnServiceUrl string `json:"singleSignOnServiceUrl,omitempty"`
24
+ SigningCertificate string `json:"signingCertificate,omitempty"`
25
+ SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"`
26
+ XmlSigKeyInfoKeyNameTransformer string `json:"xmlSigKeyInfoKeyNameTransformer,omitempty"`
27
+ PostBindingAuthnRequest types. KeycloakBoolQuoted `json:"postBindingAuthnRequest,omitempty"`
28
+ PostBindingResponse types. KeycloakBoolQuoted `json:"postBindingResponse,omitempty"`
29
+ PostBindingLogout types. KeycloakBoolQuoted `json:"postBindingLogout,omitempty"`
30
+ ForceAuthn types. KeycloakBoolQuoted `json:"forceAuthn,omitempty"`
31
+ WantAuthnRequestsSigned types. KeycloakBoolQuoted `json:"wantAuthnRequestsSigned,omitempty"`
32
+ WantAssertionsSigned types. KeycloakBoolQuoted `json:"wantAssertionsSigned,omitempty"`
33
+ WantAssertionsEncrypted types. KeycloakBoolQuoted `json:"wantAssertionsEncrypted,omitempty"`
34
+ BackchannelSupported types. KeycloakBoolQuoted `json:"backchannelSupported,omitempty"`
35
+ ValidateSignature types. KeycloakBoolQuoted `json:"validateSignature,omitempty"`
36
+ AuthorizationUrl string `json:"authorizationUrl,omitempty"`
37
+ TokenUrl string `json:"tokenUrl,omitempty"`
38
+ LoginHint string `json:"loginHint,omitempty"`
39
+ UILocales types. KeycloakBoolQuoted `json:"uiLocales,omitempty"`
40
+ LogoutUrl string `json:"logoutUrl,omitempty"`
41
+ DefaultScope string `json:"defaultScope,omitempty"`
42
+ AcceptsPromptNoneForwFrmClt types. KeycloakBoolQuoted `json:"acceptsPromptNoneForwardFromClient,omitempty"`
43
+ HostedDomain string `json:"hostedDomain,omitempty"`
44
+ UserIp types. KeycloakBoolQuoted `json:"userIp,omitempty"`
45
+ OfflineAccess types. KeycloakBoolQuoted `json:"offlineAccess,omitempty"`
46
+ PrincipalType string `json:"principalType,omitempty"`
47
+ PrincipalAttribute string `json:"principalAttribute,omitempty"`
48
+ GuiOrder string `json:"guiOrder,omitempty"`
49
+ SyncMode string `json:"syncMode,omitempty"`
50
+ ExtraConfig map [string ]interface {} `json:"-"`
51
+ AuthnContextClassRefs types. KeycloakSliceQuoted `json:"authnContextClassRefs,omitempty"`
52
+ AuthnContextComparisonType string `json:"authnContextComparisonType,omitempty"`
53
+ AuthnContextDeclRefs types. KeycloakSliceQuoted `json:"authnContextDeclRefs,omitempty"`
54
+ Issuer string `json:"issuer,omitempty"`
54
55
}
55
56
56
57
type IdentityProvider struct {
0 commit comments