{"action":"created","issue":{"url":"https://api.github.com/repos/onelogin/drupal-saml/issues/17","labels_url":"https://api.github.com/repos/onelogin/drupal-saml/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/onelogin/drupal-saml/issues/17/comments","events_url":"https://api.github.com/repos/onelogin/drupal-saml/issues/17/events","html_url":"https://github.com/onelogin/drupal-saml/pull/17","id":57231911,"number":17,"title":"adding arbitrary role handling to user provisioning","user":{"login":"rehabllc","id":360006,"avatar_url":"https://avatars.githubusercontent.com/u/360006?v=3","gravatar_id":"","url":"https://api.github.com/users/rehabllc","html_url":"https://github.com/rehabllc","followers_url":"https://api.github.com/users/rehabllc/followers","following_url":"https://api.github.com/users/rehabllc/following{/other_user}","gists_url":"https://api.github.com/users/rehabllc/gists{/gist_id}","starred_url":"https://api.github.com/users/rehabllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehabllc/subscriptions","organizations_url":"https://api.github.com/users/rehabllc/orgs","repos_url":"https://api.github.com/users/rehabllc/repos","events_url":"https://api.github.com/users/rehabllc/events{/privacy}","received_events_url":"https://api.github.com/users/rehabllc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-10T20:29:22Z","updated_at":"2015-04-17T15:16:47Z","closed_at":"2015-04-17T01:24:14Z","pull_request":{"url":"https://api.github.com/repos/onelogin/drupal-saml/pulls/17","html_url":"https://github.com/onelogin/drupal-saml/pull/17","diff_url":"https://github.com/onelogin/drupal-saml/pull/17.diff","patch_url":"https://github.com/onelogin/drupal-saml/pull/17.patch"},"body":"In the case of arbitrary role mapping (admin wants to map OneLogin \"Department\" -> Drupal role), check if the corresponding role exists in drupal and assign it to the roles array in foreach loop.\r\n\r\nAdditionally, don't destroy roles array when adding \"authenticated user\" in switch statement."},"comment":{"url":"https://api.github.com/repos/onelogin/drupal-saml/issues/comments/94006679","html_url":"https://github.com/onelogin/drupal-saml/pull/17#issuecomment-94006679","issue_url":"https://api.github.com/repos/onelogin/drupal-saml/issues/17","id":94006679,"user":{"login":"rehabllc","id":360006,"avatar_url":"https://avatars.githubusercontent.com/u/360006?v=3","gravatar_id":"","url":"https://api.github.com/users/rehabllc","html_url":"https://github.com/rehabllc","followers_url":"https://api.github.com/users/rehabllc/followers","following_url":"https://api.github.com/users/rehabllc/following{/other_user}","gists_url":"https://api.github.com/users/rehabllc/gists{/gist_id}","starred_url":"https://api.github.com/users/rehabllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rehabllc/subscriptions","organizations_url":"https://api.github.com/users/rehabllc/orgs","repos_url":"https://api.github.com/users/rehabllc/repos","events_url":"https://api.github.com/users/rehabllc/events{/privacy}","received_events_url":"https://api.github.com/users/rehabllc/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:16:47Z","updated_at":"2015-04-17T15:16:47Z","body":"Sorry for the delay -- we are using this, though since we've added some \ncustomizations unique to our needs and some specific many-to-one role \nmappings, but the fundamental code is still there.\n\nOn 4/16/2015 2:31 PM, Sixto Martin wrote:\n>\n> @rehabllc <https://github.com/rehabllc> Do you have this PR in \n> production? I plan to test it and merge it this week.\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/onelogin/drupal-saml/pull/17#issuecomment-93833078>.\n>\n\n"}}