cancel
Showing results for 
Search instead for 
Did you mean: 

Twitter/Facebook Etc

billyboy
Champ in-the-making
Champ in-the-making
Hi,

When trying to add a channel manager for twitter today I got this error:

Unable to authorize channel. Please check you are using the correct URL:
You used the domain: https://alf.mydomain:8443
The expected domain is: http://alf:8080
Please reload the page using this link and reauthorize your new channel.

Assuming this must be a configuration file somewhere that I need to change?

Many thanks

Will
11 REPLIES 11

conrad
Champ in-the-making
Champ in-the-making
I'd love to know how to configure this feature, I can't find any documentation on it?

Regards,
Conrad

mitpatoliya
Star Collaborator
Star Collaborator
Refer this link which contains documentation for this.
Hope this is helpful.
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fadminconsol...

conrad
Champ in-the-making
Champ in-the-making
Ah brilliant, I don't know how I missed the documentation. Its not the kind of feature I was hoping for. I was looking for Facebook integration on a per user basis rather than managing an Admin Facebook page…unless I got the wrong end of the stick?

conrad
Champ in-the-making
Champ in-the-making
Hmm, no, I get the same issue as BillyBoy

Unable to authorize channel. Please check you are using the correct URL:
You used the domain: https://mysite.com:443
The expected domain is: http://127.0.0.1:8080
Please reload the page using this link and reauthorize your new channel

Does anyone know the solution to this?

conrad
Champ in-the-making
Champ in-the-making
Hmm, no, I get the same issue as BillyBoy

Unable to authorize channel. Please check you are using the correct URL:
You used the domain: https://mysite.com:443
The expected domain is: http://127.0.0.1:8080
Please reload the page using this link and reauthorize your new channel

Does anyone know the solution to this?

billyboy
Champ in-the-making
Champ in-the-making
Many thanks for the link but that it shows how to set it up which is fine, the issue is the system then complains that I've not used the correct URL.  I don't allow 8080 from outside the org to the alfresco, only 8443.  It looks to be that there's some setting somewhere that alfresco is expecting the connection to be on 8080, where can I make sure that alfresco defaults to 8443?  I guess that would then solve this issue?

Many thanks

Will

billyboy
Champ in-the-making
Champ in-the-making
Would changing the server.xml and share-config-custom to use 8443 do the trick ?

mitpatoliya
Star Collaborator
Star Collaborator
Yes that should be changed to 8083 or what ever port you are  using also change the host name if in case you are not using local repository.

davidcognite
Star Contributor
Star Contributor
Hello,

A bit of background: When authorising a publishing channel, the Alfresco repository needs to be able to construct a working URL to the Share instance. In the case of a Twitter channel, this then gets sent to them as part of the oAuth communication. The domain (protocol, host and port) you use to view Share needs to match the domain that the Repo thinks Share is on & this is checked client side before the oAuth request proceeds - I needed to add this check to prevent even more confusing error messages caused by tripping over the browser security model if the domains didn't match.

The fix: The settings you need to check are share.host and share.port and share.protocol in alfresco-global.properties. The default host is {localname} which corresponds to the what the server thinks is it's hostname. This might be where you are getting Alf or 127.0.0.1 from. The settings for those values should match exactly what you type into the address bar.

Will: the connection is made by the user's browser so in this case, the internal hostname and port should work fine.

Hope that helps,
David.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.