Coder Social home page Coder Social logo

Problem registering about hubic2swiftgate HOT 6 CLOSED

oderwat avatar oderwat commented on May 12, 2024
Problem registering

from hubic2swiftgate.

Comments (6)

oderwat avatar oderwat commented on May 12, 2024

Sounds like the callback url you registered at hubic is not correct.

from hubic2swiftgate.

jckoester avatar jckoester commented on May 12, 2024

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.

jckoester avatar jckoester commented on May 12, 2024

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.

oderwat avatar oderwat commented on May 12, 2024

I think we can extend the new configurable callback URL for the autoregister functionality to the normal register function.

from hubic2swiftgate.

oderwat avatar oderwat commented on May 12, 2024

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.

jckoester avatar jckoester commented on May 12, 2024

Works perfectly well. Thank's a lot.

from hubic2swiftgate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.