Comments (6)
Sounds like the callback url you registered at hubic is not correct.
from hubic2swiftgate.
Well that's waht I also thought so I double checked.
I'm using https://backups.myserver.de/callback/ as callback url. If I visit this url manually I get an error 'Illegal' and in the logs I find something like this:
[Sun Jan 17 09:06:36.203540 2016] [:error] [pid 29890] [client 192.168.3.1:38880] PHP Notice: Undefined index: error in /var/www/hsgate/www/simple.php on line 382, referer: https://hubic.com/home/browser/developers/
[Sun Jan 17 09:06:36.203688 2016] [:error] [pid 29890] [client 192.168.3.1:38880] PHP Notice: Undefined index: error_description in /var/www/hsgate/www/simple.php on line 383, referer: https://hubic.com/home/browser/developers/
However when I try to register via https://backups.myserver.de/register/?client=hubic&.... I don't get redirected to a hubic login page but directly to https://backups.myserver.de/
To me this looks like something in the redirection doesn' really work.
from hubic2swiftgate.
Problem solved.
I am running my hubic2swift gateway behind a SSL proxy (my router using pound), so the function getScheme was returning a wrong scheme for the callback url. My server is accessible over https but in the internal network between router and server communication is not encrypted and using port 80.
So the script was using a different redirect url than hubic, hence the problem.
Maybe you could add an option to allow manually setting the scheme.
Anyways thanks a lot for this project!
from hubic2swiftgate.
I think we can extend the new configurable callback URL for the autoregister functionality to the normal register function.
from hubic2swiftgate.
I made some changes to the code so that you should be able to add your url into the config.php. Would you please so kind and test if you can get it to work without modifying the main sources now?
from hubic2swiftgate.
Works perfectly well. Thank's a lot.
from hubic2swiftgate.
Related Issues (20)
- ftp-cloudfs + hubic2swiftgate = ftp hubic HOT 1
- 403 Forbidden HOT 3
- invalid_request HOT 2
- SCRIPT_URL does not not exists in nginx / fpm config HOT 6
- I can't make a connection with hubiC HOT 1
- . HOT 2
- Using a recent version of Python-SwiftClient HOT 3
- Dockerfile HOT 2
- 404 not found HOT 9
- ERROR : Access Denied! Wrong Client or Password HOT 13
- Alias Apache HOT 3
- Several issues (s3ql), any help? HOT 4
- autoregister doesn't work anymore ? HOT 1
- Register issue : HubiC api server responded with return code: 0 HOT 1
- include caddy configuration info HOT 1
- Help in configuration with Nginx (and Owncloud)
- Not "secure" to be trusted for "public" users... HOT 2
- Setup HOT 1
- Does not work with CyberDuck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubic2swiftgate.