Skip to content

Instantly share code, notes, and snippets.

@aneek
Created March 9, 2015 19:03
Show Gist options
  • Save aneek/8028fa394ecbe89ce933 to your computer and use it in GitHub Desktop.
Save aneek/8028fa394ecbe89ce933 to your computer and use it in GitHub Desktop.
Dynamic key value schema.yml
# Defines the schema to store each connection entry.
sso_connect.connection.* :
type: config_entity
label: SSO connection
mapping:
name:
type: label
label: 'Name'
id:
type: string
label: 'Machine name'
url:
type: string
label: 'URL of the SSO Provider'
consumerSettings:
type: sequence
label: 'Advanced storage for Consumer'
sequence:
type: mapping
mapping:
key:
type: string
label: The SSO Key
secret:
type: string
label: The SSO Secret
fieldMapping:
type: sequence
label: 'The field mapping to store data'
type: connection.[%key]
connection.field:*:
type: sequence
label: Fields
sequence:
type: mapping
mapping:
profile_field:
type: string
label: The profile field
sso_field:
type: string
label: The SSO field from different site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment