{"action":"opened","number":119,"pull_request":{"url":"https://api.github.com/repos/rapid7/awsaml/pulls/119","id":206224664,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjI0NjY0","html_url":"https://github.com/rapid7/awsaml/pull/119","diff_url":"https://github.com/rapid7/awsaml/pull/119.diff","patch_url":"https://github.com/rapid7/awsaml/pull/119.patch","issue_url":"https://api.github.com/repos/rapid7/awsaml/issues/119","number":119,"state":"open","locked":false,"title":"Add multiple role support","user":{"login":"bturner-r7","id":2836432,"node_id":"MDQ6VXNlcjI4MzY0MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/2836432?v=4","gravatar_id":"","url":"https://api.github.com/users/bturner-r7","html_url":"https://github.com/bturner-r7","followers_url":"https://api.github.com/users/bturner-r7/followers","following_url":"https://api.github.com/users/bturner-r7/following{/other_user}","gists_url":"https://api.github.com/users/bturner-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/bturner-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bturner-r7/subscriptions","organizations_url":"https://api.github.com/users/bturner-r7/orgs","repos_url":"https://api.github.com/users/bturner-r7/repos","events_url":"https://api.github.com/users/bturner-r7/events{/privacy}","received_events_url":"https://api.github.com/users/bturner-r7/received_events","type":"User","site_admin":false},"body":"This adds a role switcher when multiple roles are passed via the SAML assertion.  This is similar to how the AWS console handles multiple roles.  When a single role is passed, the behavior is unchanged.\r\n\r\n![awsaml-role-switcher](https://user-images.githubusercontent.com/2836432/43683293-14636322-984e-11e8-988a-e9873df4dfcf.gif)\r\n\r\nThis also includes a few random fixes/improvements that I found along the way:\r\n\r\n- A copy button for the terminal copy/pasta text\r\n- Display credential data as a grid\r\n- Fix the bugs and URLs when running in react developer mode\r\n\r\n**Note to reviewers:**\r\nI am not a react or express developer, much less a react+redux+express+electron developer.  Please keep this in mind when reviewing and feel free to suggest stylistic changes.\r\n\r\n**Note to Okta users:**\r\n\r\nAWS requires that multiple roles are passed as multiple values to the `https://aws.amazon.com/SAML/Attributes/Role` attribute (see [the AWS docs](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_assertions.html)).  By default, Okta passes multiple values as a single value separated by commas.  To fix this, you must contact Okta support and ask them to enable the `SAML_SUPPORT_ARRAY_ATTRIBUTES` feature flag.  See [this post](https://devforum.okta.com/t/multivalued-attributes/179/3).\r\n\r\nOnce this feature flag is enabled, you can add specify multiple roles using an Okta expression:\r\n\r\n```\r\nArrays.flatten(\r\n  \"<role_arn>,<principal_arn>\",\r\n  \"<role_arn>,<principal_arn>\",\r\n  \"<role_arn>,<principal_arn>\"\r\n)\r\n```","created_at":"2018-08-05T06:34:07Z","updated_at":"2018-08-05T06:34:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/awsaml/pulls/119/commits","review_comments_url":"https://api.github.com/repos/rapid7/awsaml/pulls/119/comments","review_comment_url":"https://api.github.com/repos/rapid7/awsaml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/awsaml/issues/119/comments","statuses_url":"https://api.github.com/repos/rapid7/awsaml/statuses/5745ed3987a5352e0814c4aecf6da947fd923767","head":{"label":"rapid7:multiple-role-support","ref":"multiple-role-support","sha":"5745ed3987a5352e0814c4aecf6da947fd923767","user":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":50682822,"node_id":"MDEwOlJlcG9zaXRvcnk1MDY4MjgyMg==","name":"awsaml","full_name":"rapid7/awsaml","owner":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/awsaml","description":"Awsaml is an application for providing automatically rotated temporary AWS credentials. ","fork":false,"url":"https://api.github.com/repos/rapid7/awsaml","forks_url":"https://api.github.com/repos/rapid7/awsaml/forks","keys_url":"https://api.github.com/repos/rapid7/awsaml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/awsaml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/awsaml/teams","hooks_url":"https://api.github.com/repos/rapid7/awsaml/hooks","issue_events_url":"https://api.github.com/repos/rapid7/awsaml/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/awsaml/events","assignees_url":"https://api.github.com/repos/rapid7/awsaml/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/awsaml/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/awsaml/tags","blobs_url":"https://api.github.com/repos/rapid7/awsaml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/awsaml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/awsaml/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/awsaml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/awsaml/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/awsaml/languages","stargazers_url":"https://api.github.com/repos/rapid7/awsaml/stargazers","contributors_url":"https://api.github.com/repos/rapid7/awsaml/contributors","subscribers_url":"https://api.github.com/repos/rapid7/awsaml/subscribers","subscription_url":"https://api.github.com/repos/rapid7/awsaml/subscription","commits_url":"https://api.github.com/repos/rapid7/awsaml/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/awsaml/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/awsaml/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/awsaml/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/awsaml/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/awsaml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/awsaml/merges","archive_url":"https://api.github.com/repos/rapid7/awsaml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/awsaml/downloads","issues_url":"https://api.github.com/repos/rapid7/awsaml/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/awsaml/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/awsaml/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/awsaml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/awsaml/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/awsaml/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/awsaml/deployments","created_at":"2016-01-29T18:37:06Z","updated_at":"2018-08-01T16:32:44Z","pushed_at":"2018-08-05T06:21:00Z","git_url":"git://github.com/rapid7/awsaml.git","ssh_url":"git@github.com:rapid7/awsaml.git","clone_url":"https://github.com/rapid7/awsaml.git","svn_url":"https://github.com/rapid7/awsaml","homepage":"","size":383,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":35,"watchers":78,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"155506dc9a9ef21f3463624ae76d110c1f6906b1","user":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":50682822,"node_id":"MDEwOlJlcG9zaXRvcnk1MDY4MjgyMg==","name":"awsaml","full_name":"rapid7/awsaml","owner":{"login":"rapid7","id":1013671,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMTM2NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1013671?v=4","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/awsaml","description":"Awsaml is an application for providing automatically rotated temporary AWS credentials. ","fork":false,"url":"https://api.github.com/repos/rapid7/awsaml","forks_url":"https://api.github.com/repos/rapid7/awsaml/forks","keys_url":"https://api.github.com/repos/rapid7/awsaml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/awsaml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/awsaml/teams","hooks_url":"https://api.github.com/repos/rapid7/awsaml/hooks","issue_events_url":"https://api.github.com/repos/rapid7/awsaml/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/awsaml/events","assignees_url":"https://api.github.com/repos/rapid7/awsaml/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/awsaml/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/awsaml/tags","blobs_url":"https://api.github.com/repos/rapid7/awsaml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/awsaml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/awsaml/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/awsaml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/awsaml/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/awsaml/languages","stargazers_url":"https://api.github.com/repos/rapid7/awsaml/stargazers","contributors_url":"https://api.github.com/repos/rapid7/awsaml/contributors","subscribers_url":"https://api.github.com/repos/rapid7/awsaml/subscribers","subscription_url":"https://api.github.com/repos/rapid7/awsaml/subscription","commits_url":"https://api.github.com/repos/rapid7/awsaml/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/awsaml/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/awsaml/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/awsaml/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/awsaml/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/awsaml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/awsaml/merges","archive_url":"https://api.github.com/repos/rapid7/awsaml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/awsaml/downloads","issues_url":"https://api.github.com/repos/rapid7/awsaml/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/awsaml/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/awsaml/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/awsaml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/awsaml/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/awsaml/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/awsaml/deployments","created_at":"2016-01-29T18:37:06Z","updated_at":"2018-08-01T16:32:44Z","pushed_at":"2018-08-05T06:21:00Z","git_url":"git://github.com/rapid7/awsaml.git","ssh_url":"git@github.com:rapid7/awsaml.git","clone_url":"https://github.com/rapid7/awsaml.git","svn_url":"https://github.com/rapid7/awsaml","homepage":"","size":383,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":11,"open_issues":35,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/awsaml/pulls/119"},"html":{"href":"https://github.com/rapid7/awsaml/pull/119"},"issue":{"href":"https://api.github.com/repos/rapid7/awsaml/issues/119"},"comments":{"href":"https://api.github.com/repos/rapid7/awsaml/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/awsaml/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/awsaml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/awsaml/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/awsaml/statuses/5745ed3987a5352e0814c4aecf6da947fd923767"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":463,"deletions":33,"changed_files":17}}
{"actor":{"display_login":"bturner-r7"}}