Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds AttributeConsumingService to the metadata #54

Merged

Conversation

skanct
Copy link
Contributor

@skanct skanct commented Nov 2, 2014

Adds:

  • ServiceName
  • ServiceDescription
  • RequestedAttributes

Example configuration:

  "passport": {
    "saml": {
      "path": "/saml/login/callback",
      "callbackUrl": "https://127.0.0.1:8081/saml/login/callback",
      "entryPoint": "https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php",
      "issuer": "https://127.0.0.1:8081/saml2/entityid",
      "serviceName": "GEANT Cloud Catalogue",
      "serviceDescription": "GEANT Cloud Catalogue",
      "requestedAttributes":[
        {
          "FriendlyName": "eduPersonTargetedID",
          "Name": "urn:oid:1.3.6.1.4.1.5923.1.1.1.10",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "true"
        },
        {
          "FriendlyName": "eduPersonPrincipalName",
          "Name": "urn:oid:1.3.6.1.4.1.5923.1.1.1.6",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "true"
        },
        {
          "FriendlyName": "mail",
          "Name": "urn:oid:0.9.2342.19200300.100.1.3",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "cn",
          "Name": "urn:oid:2.5.4.3",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "displayName",
          "Name": "urn:oid:2.16.840.1.113730.3.1.241",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "givenName",
          "Name": "urn:oid:2.5.4.42",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "surname",
          "Name": "urn:oid:2.5.4.4",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        }
      ]
    }
}

Adds:

- ServiceName
- ServiceDescription
- RequestedAttributes

Example configuration:

```
  "passport": {
    "saml": {
      "path": "/saml/login/callback",
      "callbackUrl": "https://127.0.0.1:8081/saml/login/callback",
      "entryPoint": "https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php",
      "issuer": "https://127.0.0.1:8081/saml2/entityid",
      "serviceName": "GEANT Cloud Catalogue",
      "serviceDescription": "GEANT Cloud Catalogue",
      "requestedAttributes":[
        {
          "FriendlyName": "eduPersonTargetedID",
          "Name": "urn:oid:1.3.6.1.4.1.5923.1.1.1.10",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "true"
        },
        {
          "FriendlyName": "eduPersonPrincipalName",
          "Name": "urn:oid:1.3.6.1.4.1.5923.1.1.1.6",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "true"
        },
        {
          "FriendlyName": "mail",
          "Name": "urn:oid:0.9.2342.19200300.100.1.3",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "cn",
          "Name": "urn:oid:2.5.4.3",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "displayName",
          "Name": "urn:oid:2.16.840.1.113730.3.1.241",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "givenName",
          "Name": "urn:oid:2.5.4.42",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        },
        {
          "FriendlyName": "surname",
          "Name": "urn:oid:2.5.4.4",
          "NameFormat": "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
          "isRequired": "false"
        }
      ]
    }
  ,
```
louridas added a commit that referenced this pull request Nov 3, 2014
…ervice

Adds AttributeConsumingService to the metadata
@louridas louridas merged commit 3ca9599 into grnet:master Nov 3, 2014
@skanct skanct deleted the metadata_for_attribute_consuming_service branch November 7, 2014 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants