{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/362","repository_url":"https://api.github.com/repos/cloudfoundry/uaa","labels_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/362/comments","events_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/362/events","html_url":"https://github.com/cloudfoundry/uaa/issues/362","id":154184345,"number":362,"title":"Can I get OAuth2 token from UAA with SAML user?","user":{"login":"toshiomakiyy","id":7712254,"avatar_url":"https://avatars.githubusercontent.com/u/7712254?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiomakiyy","html_url":"https://github.com/toshiomakiyy","followers_url":"https://api.github.com/users/toshiomakiyy/followers","following_url":"https://api.github.com/users/toshiomakiyy/following{/other_user}","gists_url":"https://api.github.com/users/toshiomakiyy/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiomakiyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiomakiyy/subscriptions","organizations_url":"https://api.github.com/users/toshiomakiyy/orgs","repos_url":"https://api.github.com/users/toshiomakiyy/repos","events_url":"https://api.github.com/users/toshiomakiyy/events{/privacy}","received_events_url":"https://api.github.com/users/toshiomakiyy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry/uaa/labels/unscheduled","name":"unscheduled","color":"D9D9D9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T08:11:13Z","updated_at":"2016-05-11T08:11:15Z","closed_at":null,"body":"Hi Team.\r\nI'm trying to integrate SAML authentication(I use OpenAM) on CloudFoundry.\r\nIt seems that authentication works good. I can login to uaa with OpenAM's authentication.\r\n\r\nBy the way, I have an application using UAA OAuth2 Token.\r\nIt is used to get data(user/apps/orgs/spaces) from Cloud Foundry.\r\n\r\nWhen I login with UAA user(ex. admin), UAA displays page for authorization, redirect the application when I approved, I can get CloudFoundry data using OAuth2 Token .\r\n\r\nBut when I login with SAML user, UAA displays root page and I cannot get OAuth2 Token.\r\n\r\nHow to get OAuth2 token from UAA using SAML user?"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/comments/218391273","html_url":"https://github.com/cloudfoundry/uaa/issues/362#issuecomment-218391273","issue_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/362","id":218391273,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T08:11:15Z","updated_at":"2016-05-11T08:11:15Z","body":"We have created an issue in Pivotal Tracker to manage this: \n\nhttps://www.pivotaltracker.com/story/show/119348169 \n\nThe labels on this github issue will be updated when the story is started."}}