RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
39.94k stars 10.29k forks source link

Rocketchat Jira oauth integration #14557

Open rgoerner opened 5 years ago

rgoerner commented 5 years ago

Hi,

I am playing around to reach my goal to identify all users and roles from the internal Jira-Directory as Hipchat did before. We do not want to use the Crowd from Atlassian (I know there is support on it in Rocketchat already).

I did the following:

(see https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-oauth-authentication-6291692/)

However, I get the following error:

WARN anonymous 743x1356589x1 191gj9b 1.2.3.4 /plugins/servlet/oauth/authorize [c.a.o.s.i.servlet.authorize.AuthorizeServlet] Problem encountered authenticating OAuth client for url "https:// base-URL of Jira /plugins/servlet/oauth/authorize", error was "parameter_absent", with parameters "{oauth_parameters_absent=oauth_token, oauth_problem=parameter_absent}"

Can anyone help me?

We can try all together and then, would have a new Oauth-Plugin maybe for Rocketchat which would help others, too

Thanks Ronny

geekgonecrazy commented 5 years ago

It looks like jira is expecting some non-standard paramaters to their oauth endpoints.

it wants the parameter oauth_token and Rocket.Chat isn't sending that.

If you take a look at the url your browser goes to when you click the button you'll see the params sent.

Looking at the params it wants.. you'll likely have to implement an oauth provider inside Rocket.Chat to make it work. I don't think you'll be able to use our custom oauth feature :(

rgoerner commented 5 years ago

@geekgonecrazy yes, this is correct. But rocketchat does not support custom RSA Auth and the parameter "param name of the token" seems to be not working correctly, too, or I am too silly ;-)

rgoerner commented 5 years ago

I tried to avoid this problem, but now I was running into another issue, that I can not run my own iframe-integration on the app for Android (known issue). So :( @geekgonecrazy can you tell me the file, where the normal login process does appear that I can have a look into the code? Thanks

geekgonecrazy commented 5 years ago

Take a look at any of the current authentication methods added:

https://github.com/RocketChat/Rocket.Chat/tree/develop/app/dolphin https://github.com/RocketChat/Rocket.Chat/tree/develop/app/drupal https://github.com/RocketChat/Rocket.Chat/tree/develop/app/gitlab

There are a few

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.