# Keycloak operator with custom realm file using that I am trying to create an Identity provider

**URL:** <https://forum.keycloak.org/t/keycloak-operator-with-custom-realm-file-using-that-i-am-trying-to-create-an-identity-provider/13101>\
**Category:** Miscellanaeous\
**Tags:** authentication, oidc\
**Created:** [January 17, 2022, 3:50pm UTC](https://forum.keycloak.org/t/keycloak-operator-with-custom-realm-file-using-that-i-am-trying-to-create-an-identity-provider/13101 "2022-01-17T15:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakeshreddyrg09](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rakeshreddyrg09/32/4467_2.png) [@rakeshreddyrg09](https://forum.keycloak.org/u/rakeshreddyrg09)\
**Post date:** [January 17, 2022, 3:50pm UTC](https://forum.keycloak.org/t/keycloak-operator-with-custom-realm-file-using-that-i-am-trying-to-create-an-identity-provider/13101/1 "2022-01-17T15:50:26Z")

</div>

Hi All,  
I am using keycloak operator with custom realm file using that I am trying to create an Identity provider

please refer to the below manifest:

```auto
apiVersion: keycloak.org/v1alpha1
kind: KeycloakRealm
metadata:
labels:
app: test-keycloak
name: test
namespace: keycloak
spec:
instanceSelector:
matchLabels:
app: test-keycloak
realm:
displayName: test
enabled: true
id: test
realm: test
roles:
realm:
- name: test-role
description: Regular user with limited set of permissions
composite: true
composites:
client:
test-client:
- guest
clientRole: false
client:
test-client:
- name: "guest"
description: "guest user"
composite: false
clientRole: true
clients:
- clientId: test-client
name: test-client
description: test-client
enabled: true
clientAuthenticatorType: client-secret
secret: secret
identityProviders:
- alias: "test"
internalId: "2vsdvsd-2sdvsdvw3-zxv"
providerId: "oidc"
enabled: true
#updateProfileFirstLoginMode: on
trustEmail: false
storeToken: false
addReadTokenRoleOnCreate: false
#authenticateByDefault: false
linkOnly: false
firstBrokerLoginFlowAlias: "first broker login"
config:
userInfoUrl: "https://test-qa/userinfo"
validateSignature: "true"
clientId: "some id here"
tokenUrl: "https://test-qa.eu.auth0.com/oauth/token"
jwksUrl: "https://test-qa.eu.auth0.com/.well-known/jwks.json"
issuer: "https://test-qa.eu.auth0.com/"
pkceMethod: "S256"
useJwksUrl: "true"
pkceEnabled: "true"
authorizationUrl: "https://test-qa.eu.auth0.com/authorize?connection=main-tenant-oidc"
clientAuthMethod: "client_secret_post"
syncMode: "IMPORT"
clientSecret: "client-secret"

```

this is creating a realm but not adding the identity provider.  
can anyone help me out here?

Thank you.
