Giter Club home page Giter Club logo

Comments (13)

oderwat avatar oderwat commented on July 26, 2024

You need to use the client and password you stored into the config.php file you created from the example file config.php.sample. This would be "hubic" an "mypassword" for the values in the sample: https://github.com/oderwat/hubic2swiftgate/blob/master/config.php.sample

from hubic2swiftgate.

Nico83500 avatar Nico83500 commented on July 26, 2024

Thank you.
I must replace 'hubic' value in config.php ? Or only mypassword ?
And what is the redirection url I should use in hubiC app ? Is http://localhost/ a right value ?

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

You do not need to replace hubic and the password is NOT your hubic password. Chose something else!

The redirection URL for localhost would be: http://localhost/callback/ if I read my own docs correctly :)

from hubic2swiftgate.

Nico83500 avatar Nico83500 commented on July 26, 2024

Ok thanks :)
Now my error is "Illegal! | error: invalid_request | error_description: please verify redirect uri"
Perhaps it's an error with the redirect url from hubiC app. I have put hubic2swiftgate to my VPS, I use http://hsgate.domain.ovh/register....... but I use http://localhost/callback/ because I can't use https://hsgate.domain.ovh/callback/ (hubiC doesn't accept "ovh" in URL...). Right ?

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

Redirect URI will be: https://github.com/oderwat/hubic2swiftgate/blob/master/www/simple.php#L107

So you could add a die($redirect_uri.PHP_EOL); in line 108 and just call any url on the server to figure our what the gateway sends to HubiC on OAuth2 Register. What is sent there needs to resolve in your Browser. There is no other way! You may need to change your setup.

from hubic2swiftgate.

Nico83500 avatar Nico83500 commented on July 26, 2024

Ok thank you for informations.
A last question before changing my setup : if I use a VPS with a 100Mbits network bandwith only for hubic2swiftgate and a private network with 1Gbit bandwith to upload my files, does the VPS limit my bandwith ? Or VPS is only use to authenticate and all traffic is made between my home and hubiC server ? If VPS is the bottleneck, it's better to use a local server...

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

The gateway is only used for the authentication! The data-transfer afterwards is between the client and HubiC server directly.

from hubic2swiftgate.

Nico83500 avatar Nico83500 commented on July 26, 2024

Good news, so perhaps the best solution is to buy a new domain name (without .ovh extension) and generate a new hubiC app with the new domain name...

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

You could just use any DynamicDNS service or just "invent" a domain and add it to the hosts file for the systems you want to use it. It is not needed that the OVH systems can resolve it.

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

I close this issue. If you run into more problems reply here please.

from hubic2swiftgate.

dezfutak avatar dezfutak commented on July 26, 2024

Hi Hans, many thanks for publishing the hubic2swiftgate code on github; I have successfully authenticated a new app with my hubic account using your code, but I've so far been completely unsuccessful in using ftp-cloudfs to work with hubic2swiftgate, despite trying many variations :(

Do you have any experience with ftp-cloudfs & hubic2swiftgate (& if so, any help would be welcome!).

Dez.

from hubic2swiftgate.

oderwat avatar oderwat commented on July 26, 2024

Hi @dezfutak I would prefer if you open a new issue with your question. I did never use ftp-cloudfs myself so it would be probably better to ask in a fresh issue if anybody else did :) (as nearly nobody will see this here.. besides me and the person which opened this one)

from hubic2swiftgate.

dezfutak avatar dezfutak commented on July 26, 2024

@oderwat - yes, that's probably the best solution; as it happens, I've made some progress in that I now understand why things haven't been working (I need to re-authenticate my hubic2swiftgate app with a subdomain so that ftp-cloudfs will uniquely resolve on the server in a vhost setup, whereas on the root of a domain, it won't).

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.