---
# System prepended metadata

title: Configure OIDC for Noggin/IPA in OCP4

---

# Configure OIDC for Noggin/IPA in OCP4



oc apply -f thing.yaml


```
apiVersion: config.openshift.io/v1
kind: OAuth
metadata:
  name: cluster
spec:  
  identityProviders:
  - name: fedoraidp
    login: true
    challenge: false
    mappingMethod: claim
    type: OpenID
    openID:
      clientID: ocp    
      clientSecret:
        name: fedoraidp-clientsecret
      extraScopes:
      - email
      - profile
      claims:
        preferredUsername:
        - nickname
        name:
        - name
        email:
        - email
      issuer: https://id.fedoraproject.org

```
