Toxic_Wars Posted May 2, 2017 Posted May 2, 2017 Going to attempt this. Hardest thing for me is getting rocket.chat installed.
Mastric Posted May 2, 2017 Posted May 2, 2017 10 minutes ago, Toxic_Wars said: Going to attempt this. Hardest thing for me is getting rocket.chat installed. There are numerous options to deploy the application that you could use, instead of a bare bones install. https://rocket.chat/docs/installation/paas-deployments
ossipetz Posted May 3, 2017 Posted May 3, 2017 Hallo Thanks a lot for this application! I've installed it to see if I can replace the other Chat Solution I currently run. The setup worked quite well. In the first attempt I got the Paths wrong (missing /oauth/ in the url). Not sure where I found those urls. Currently in Rocket.Chat I have the "Scope" field empty. Is that the correct setting? And does anyone know is there a way to move the avatar over to Rocket.Chat? Thanks!
wohali Posted May 4, 2017 Author Posted May 4, 2017 2 hours ago, ossipetz said: Hallo Thanks a lot for this application! You're welcome! 2 hours ago, ossipetz said: I've installed it to see if I can replace the other Chat Solution I currently run. The setup worked quite well. In the first attempt I got the Paths wrong (missing /oauth/ in the url). Not sure where I found those urls. Currently in Rocket.Chat I have the "Scope" field empty. Is that the correct setting? Empty will use the default, which I believe is OK. Going on memory here, so correct me if I'm wrong. 2 hours ago, ossipetz said: And does anyone know is there a way to move the avatar over to Rocket.Chat? Not easily. Rocket.Chat doesn't import the avatar over the OAuth bridge even though I've implemented support for it on the IPS side. I filed an upstream ticket on this but no action was taken.
Maksim Posted May 4, 2017 Posted May 4, 2017 On 4/27/2017 at 7:30 PM, RevengeFNF said: Rocket.Chat using a widget on my forum looks really nice. Did you just place that at the bottom of the discussions? Appearing on every page or? 10 hours ago, ossipetz said: Hallo Thanks a lot for this application! I've installed it to see if I can replace the other Chat Solution I currently run. The setup worked quite well. In the first attempt I got the Paths wrong (missing /oauth/ in the url). Not sure where I found those urls. Currently in Rocket.Chat I have the "Scope" field empty. Is that the correct setting? And does anyone know is there a way to move the avatar over to Rocket.Chat? Thanks! I have scope empty too iirc and works fine.
Mastric Posted May 10, 2017 Posted May 10, 2017 On 5/3/2017 at 8:17 PM, wohali said: Not easily. Rocket.Chat doesn't import the avatar over the OAuth bridge even though I've implemented support for it on the IPS side. I filed an upstream ticket on this but no action was taken. Do you have a link for this ticket, I can't find it on GitHub, although i thought i recalled marking it.
wohali Posted May 10, 2017 Author Posted May 10, 2017 https://github.com/RocketChat/Rocket.Chat/issues/3429 If you want to file a new ticket specific to generic OAuth avatar support, go for it.
Ohio Riders Posted May 24, 2017 Posted May 24, 2017 New install. Getting this error. The redirect uri is set to exactly what RocketChat said. Any ideas? My only thought is my IPB site is SSL but my RocketChat server is not. That shouldn't matter though. {"error":"redirect_uri_mismatch","error_description":"The redirect URI provided is missing or does not match","error_uri":"http:\/\/tools.ietf.org\/html\/rfc6749#section-3.1.2"}
Ohio Riders Posted May 25, 2017 Posted May 25, 2017 After some testing, it appears I get that same error no matter what I put in for the callback URL. I tried RocketChat 0.56.0, and even backed down to 0.55.1 with the same issue. It truly seems to lie with this plugin unless I'm missing something stupid.
wohali Posted May 25, 2017 Author Posted May 25, 2017 Hi @Ohio Riders sorry to hear you're having trouble. I'll try and diagnose publicly as best as I can. The specific error you're getting states that the callback URL that's being passed to IPS during the authentication process by Rocket.Chat does not match the callback URL that's in the ACP. Here's the link to the actual code returning this error: https://github.com/wohali/ips4-oauth2-server/blob/e83d372d8fc90eacee3b1fd331bf9acfe67d62ae/sources/OAuth2/Controller/AuthorizeController.php#L161-L166 Please double check in Rocket.Chat's Custom OAuth page (under Administration > Settings > OAuth > Custom OAuth: <name>) for your Callback URL - this will be of the form http://your.rocketchat.server/_oauth/name (with no trailing period!) Ensure that this is entered in the ACP under Community > OAuth2 Server Applications > (your application) > Edit > Redirect URI. Any difference here - even upper/lowercase - might cause this issue. If you continue to have problems, delete and recreate the integration both in IPS4 and Rocket.Chat. Beyond that, I'd need admin access to both your servers. I'm kind of busy for the next few days but I could give it a look if absolutely necessary. FYI I have 0.55.1 and 0.56.0 running fine here, so those specific versions shouldn't be the problem.
Ohio Riders Posted May 25, 2017 Posted May 25, 2017 I'm going to start over from scratch tonight once the kiddos are in bed. I'll take screenshots of the configs and post up. Thanks.
Ohio Riders Posted May 25, 2017 Posted May 25, 2017 No idea what I did different, but now it's working. Sorry about that.
Ohio Riders Posted May 25, 2017 Posted May 25, 2017 On 4/27/2017 at 7:30 PM, RevengeFNF said: Rocket.Chat using a widget on my forum looks really nice. How did you make the widget?
wohali Posted June 1, 2017 Author Posted June 1, 2017 If you have Pages, embedding rocketchat in a widget is pretty easy using a custom block that contains an iframe with a pointer to your Rocket.Chat installation, such as: <iframe id="iframe" src="https://your-rocketchat-server.yourdomain.com/channel/general"> </iframe> Without Pages I think there are some add-ons in the marketplace that let you put custom HTML in a widget, but I haven't looked very closely.
David.. Posted June 1, 2017 Posted June 1, 2017 On 5/25/2017 at 11:43 PM, Ohio Riders said: How did you make the widget? I believe he used this: https://invisioncommunity.com/files/file/7337-txt-php-widget/
ossipetz Posted June 4, 2017 Posted June 4, 2017 Hallo I've started on a Online Users list for Rocket.Chat widet: But currently it seems to only work on the development forum :-( If anyone would be a bit adventurous to give it a try (see link above for the beta version). I don't know if another application / plugin interferes with this one and I have no errors. Please let me know if you gave it a try and what was the result.
ossipetz Posted June 5, 2017 Posted June 5, 2017 Update! The error was found with some help So here we go:
Matt C. Posted June 6, 2017 Posted June 6, 2017 I'm having some issues. When I click on the login button I get this: The requested URL /applications/oauth2server/interface/authorize.php was not found on this server. I discovered that the php files were actually in /applications/oauth2server/interface/oath. I changed the urls in the rocket chat settings and I still get the same error. Any suggestions? Thanks!
wohali Posted June 6, 2017 Author Posted June 6, 2017 Hi @Matthew H., Delete your OAuth integration in Rocket.Chat and re-create it. You can follow the walkthrough steps here in order if you want a step-by-step: https://github.com/wohali/ips4-oauth2-server/blob/master/Rocket.Chat.md Let me know how it turns out.
Matt C. Posted June 6, 2017 Posted June 6, 2017 58 minutes ago, wohali said: Hi @Matthew H., Delete your OAuth integration in Rocket.Chat and re-create it. You can follow the walkthrough steps here in order if you want a step-by-step: https://github.com/wohali/ips4-oauth2-server/blob/master/Rocket.Chat.md Let me know how it turns out. That worked thanks! But now I get this: {"error":"redirect_uri_mismatch","error_description":"The redirect URI provided is missing or does not match","error_uri":"http:\/\/tools.ietf.org\/html\/rfc6749#section-3.1.2"} What should I do? Thank you!
wohali Posted June 6, 2017 Author Posted June 6, 2017 Check your spelling and capitalization in the ACP for the redirect URL. It needs to exactly match what you have set up in Rocket.Chat. My guess is that you didn't update it after you deleted and recreated the OAuth setup in Rocket.Chat. Someone else had the same problem a few posts back, here's what I told them: On 2017-05-24 at 10:31 PM, wohali said: The specific error you're getting states that the callback URL that's being passed to IPS during the authentication process by Rocket.Chat does not match the callback URL that's in the ACP. Here's the link to the actual code returning this error: https://github.com/wohali/ips4-oauth2-server/blob/e83d372d8fc90eacee3b1fd331bf9acfe67d62ae/sources/OAuth2/Controller/AuthorizeController.php#L161-L166 Please double check in Rocket.Chat's Custom OAuth page (under Administration > Settings > OAuth > Custom OAuth: <name>) for your Callback URL - this will be of the form http://your.rocketchat.server/_oauth/name (with no trailing period!) Ensure that this is entered in the ACP under Community > OAuth2 Server Applications > (your application) > Edit > Redirect URI. Any difference here - even upper/lowercase - might cause this issue. If you continue to have problems, delete and recreate the integration both in IPS4 and Rocket.Chat.
Matt C. Posted June 7, 2017 Posted June 7, 2017 20 hours ago, wohali said: Check your spelling and capitalization in the ACP for the redirect URL. It needs to exactly match what you have set up in Rocket.Chat. My guess is that you didn't update it after you deleted and recreated the OAuth setup in Rocket.Chat. Someone else had the same problem a few posts back, here's what I told them: Okay I fixed this, thank you! Now I have one more problem. When I click the login button, I get a popup to my forum's login page. I login and then it closes and I get a message in the top right hand corner that says "no matching login attempt found." I tried logging in as a different user I created but that didn't work either.
wohali Posted June 7, 2017 Author Posted June 7, 2017 I've seen that happen before. When you log in a second time, does it work?
Matt C. Posted June 7, 2017 Posted June 7, 2017 Just now, wohali said: I've seen that happen before. When you log in a second time, does it work? No it doesn't unfortunately.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.