{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/5521","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/5521/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/5521/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/5521/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/5521","id":200319240,"node_id":"MDU6SXNzdWUyMDAzMTkyNDA=","number":5521,"title":"Use Rest API with oAuth Logins","user":{"login":"logycon","id":538881,"node_id":"MDQ6VXNlcjUzODg4MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/538881?v=4","gravatar_id":"","url":"https://api.github.com/users/logycon","html_url":"https://github.com/logycon","followers_url":"https://api.github.com/users/logycon/followers","following_url":"https://api.github.com/users/logycon/following{/other_user}","gists_url":"https://api.github.com/users/logycon/gists{/gist_id}","starred_url":"https://api.github.com/users/logycon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logycon/subscriptions","organizations_url":"https://api.github.com/users/logycon/orgs","repos_url":"https://api.github.com/users/logycon/repos","events_url":"https://api.github.com/users/logycon/events{/privacy}","received_events_url":"https://api.github.com/users/logycon/received_events","type":"User","site_admin":false},"labels":[{"id":261742404,"node_id":"MDU6TGFiZWwyNjE3NDI0MDQ=","url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20oauth%20/%20sso","name":"feat: oauth / sso","color":"1d76db","default":false},{"id":383493606,"node_id":"MDU6TGFiZWwzODM0OTM2MDY=","url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20rest","name":"feat: rest","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"graywolf336","id":850391,"node_id":"MDQ6VXNlcjg1MDM5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/850391?v=4","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"assignees":[{"login":"graywolf336","id":850391,"node_id":"MDQ6VXNlcjg1MDM5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/850391?v=4","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/60","html_url":"https://github.com/RocketChat/Rocket.Chat/milestone/60","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/60/labels","id":2272355,"node_id":"MDk6TWlsZXN0b25lMjI3MjM1NQ==","number":60,"title":"Short-term","description":"High priority issues that we are about to start working on.","creator":{"login":"engelgabriel","id":1000217,"node_id":"MDQ6VXNlcjEwMDAyMTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1000217?v=4","gravatar_id":"","url":"https://api.github.com/users/engelgabriel","html_url":"https://github.com/engelgabriel","followers_url":"https://api.github.com/users/engelgabriel/followers","following_url":"https://api.github.com/users/engelgabriel/following{/other_user}","gists_url":"https://api.github.com/users/engelgabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/engelgabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelgabriel/subscriptions","organizations_url":"https://api.github.com/users/engelgabriel/orgs","repos_url":"https://api.github.com/users/engelgabriel/repos","events_url":"https://api.github.com/users/engelgabriel/events{/privacy}","received_events_url":"https://api.github.com/users/engelgabriel/received_events","type":"User","site_admin":false},"open_issues":98,"closed_issues":5,"state":"open","created_at":"2017-01-23T19:14:28Z","updated_at":"2018-06-02T19:33:38Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"comments":19,"created_at":"2017-01-12T09:39:24Z","updated_at":"2018-06-04T16:17:40Z","closed_at":null,"author_association":"NONE","body":"Your Rocket.Chat version: 0.48.2\r\n\r\nWe are trying to integrate RocketChat into our application via a Polymer component. \r\n\r\nOur application uses single signon OAuth provider. RocketChat is configured to use the same OAuth provider (Keycloak) and forms-based authentication is disabled. \r\n\r\nHow can the user login to the API given this scenario?\r\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/394413477","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/5521#issuecomment-394413477","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/5521","id":394413477,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQxMzQ3Nw==","user":{"login":"hrobertson","id":497286,"node_id":"MDQ6VXNlcjQ5NzI4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/497286?v=4","gravatar_id":"","url":"https://api.github.com/users/hrobertson","html_url":"https://github.com/hrobertson","followers_url":"https://api.github.com/users/hrobertson/followers","following_url":"https://api.github.com/users/hrobertson/following{/other_user}","gists_url":"https://api.github.com/users/hrobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/hrobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrobertson/subscriptions","organizations_url":"https://api.github.com/users/hrobertson/orgs","repos_url":"https://api.github.com/users/hrobertson/repos","events_url":"https://api.github.com/users/hrobertson/events{/privacy}","received_events_url":"https://api.github.com/users/hrobertson/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T16:17:40Z","updated_at":"2018-06-04T16:17:40Z","author_association":"NONE","body":"For reference..\r\nI tried using an existing authentication token in an `Authentication` `Bearer` header or a get parameter as suggested by @graywolf336 but it didn't work.\r\n\r\nWhat does work is setting **both** the `X-Auth-Token` and `X-User-Id` headers to the values of the rc_token and rc_uid cookies set by the web interface.\r\n"}}
{"actor":{"display_login":"hrobertson"}}