Skip to content

Commit

Permalink
Setup CILogon for VEDA realm
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Oct 29, 2024
1 parent bf7d356 commit be03760
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions config/src/veda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ clients:
- stac:item:create
- stac:item:update
- stac:item:delete

roles:
client:
grafana:
Expand All @@ -71,36 +71,36 @@ roles:
clientScopeMappings:
grafana:
- clientScope: grafana:admin
roles:
roles:
- Administrator
- clientScope: grafana:editor
roles:
roles:
- Editor
- clientScope: grafana:viewer
roles:
roles:
- Viewer

stac-api:
- clientScope: stac:collection:create
roles:
roles:
- Administrator
- clientScope: stac:collection:delete
roles:
roles:
- Administrator
- clientScope: stac:collection:update
roles:
roles:
- Administrator
- Editor
- clientScope: stac:item:create
roles:
roles:
- Administrator
- Editor
- clientScope: stac:item:update
roles:
roles:
- Administrator
- Editor
- clientScope: stac:item:delete
roles:
roles:
- Administrator
- Editor

Expand All @@ -115,7 +115,7 @@ clientScopes:
- name: grafana:viewer
description: Viewer access to Grafana
protocol: openid-connect

# STAC API
- name: stac:collection:create
description: Create a collection
Expand All @@ -136,7 +136,6 @@ clientScopes:
description: Delete an item
protocol: openid-connect


groups:
- name: System Administrators
clientRoles:
Expand All @@ -157,4 +156,31 @@ groups:
grafana:
- Viewer
stac-api:
- Editor
- Editor

identityProviders:
# CILogon
- alias: cilogon # NOTE: this alias appears in the redirect_uri for the auth flow, update Github OAuth settings accordingly
displayName: CILogon
providerId: oidc
enabled: true
updateProfileFirstLoginMode: on
trustEmail: false
storeToken: false
addReadTokenRoleOnCreate: false
authenticateByDefault: false
linkOnly: false
config:
userInfoUrl: "https://cilogon.org/oauth2/userinfo"
validateSignature: "true"
tokenUrl: "https://cilogon.org/oauth2/token"
jwksUrl: "https://cilogon.org/oauth2/certs"
issuer: "https://cilogon.org"
useJwksUrl: "true"
pkceEnabled: "false"
metadataDescriptorUrl: "https://cilogon.org/.well-known/openid-configuration"
authorizationUrl: "https://cilogon.org/authorize"
clientAuthMethod: "client_secret_post"
syncMode: "LEGACY"
clientId: $(env:CILOGON_CLIENT_ID)
clientSecret: $(env:CILOGON_CLIENT_SECRET)

0 comments on commit be03760

Please sign in to comment.