Skip to content

Instantly share code, notes, and snippets.

@dima767
Last active August 29, 2015 14:06
Show Gist options
  • Save dima767/d9892b4fed7fa35e4633 to your computer and use it in GitHub Desktop.
Save dima767/d9892b4fed7fa35e4633 to your computer and use it in GitHub Desktop.
Prototype of the possible YAML service registry format for CAS server
---
services:
-
id: 1
serviceId: https://www.google.com/**
name: GOOGLE
description: Test service with ant-style pattern matching
theme: my_example_theme
allowedToProxy: true
enabled: true
ssoEnabled: true
anonymousAccess: false
evaluationOrder: 1
allowedAttributes: [uid, mail]
-
id: 2
serviceId: https://yahoo.com
name: YAHOO
description: Test service with exact match on its serviceId and optional extra attributes
evaluationOrder: 2
extraAttributes:
someCustomAttribute: Custom attribute value
-
id: 3
serviceId: ^(https?|imaps?)://.*
name: HTTPS or IMAPS
description: Test service with regex-style pattern matching of any service either via HTTPS or IMAPS
evaluationOrder: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment