Skip to content

Instantly share code, notes, and snippets.

@DanukaPraneeth
Last active July 31, 2020 17:37
Show Gist options
  • Save DanukaPraneeth/d888a8325af795ef23484e0158439cfd to your computer and use it in GitHub Desktop.
Save DanukaPraneeth/d888a8325af795ef23484e0158439cfd to your computer and use it in GitHub Desktop.
Kong | OpenId Connect Plugin
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: openid-connect
config:
audience_claim:
- aud
hide_credentials: true
auth_methods:
- client_credentials
- authorization_code
- bearer
- kong_oauth2
- refresh_token
authenticated_groups_claim:
- clientId
client_id:
- kong-cli
client_secret:
- c40ed16e-b513-431f-b41c-98fa6fd7ea27
issuer: http://auth-server:8080/auth/realms/NewRealm/openid-configuration
upstream_headers_claims:
- clientId
upstream_headers_names:
- my-client-id
upstream_access_token_header: ' '
verify_claims: false
plugin: openid-connect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment