roikku / swift-explorer

User-friendly tool to manage files in an OpenStack Storage system (SWIFT)
http://www.619.io/swift-explorer
Apache License 2.0
66 stars 21 forks source link

Login Failed [Hubic Login] #52

Open ScroogeHD117 opened 9 years ago

ScroogeHD117 commented 9 years ago

I've downloaded the .jar and it opens fine in Ubuntu Desktop.

Then I click on the "Account" tab and select "HubiC Login", which immediately gives me the error: Login Failed, event though I haven't even specified anything yet...

Am I overlooking something?

screen shot 2015-08-14 at 2 11 25 pm

blaugueux commented 8 years ago

+1

mems commented 8 years ago

I've got a local (HTTP) server running on port 9000 which conflict with the auth server used for Hubic OAuth. I saw the possibility to add a configuration file: ~/.swiftexplorer/1.0.8/swiftexplorer-settings.xml or ./swiftexplorer-settings.xml with the content:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<settings>
    <authentication>
        <api>
            <!-- no https support, nor other domain/ip than localhost -->
            <callback>http://localhost:9002</callback>
        </api>
    </authentication>
</settings>

If I don't use the configuration file, after I've submit the login form, the webview display http://localhost:9000 which do nothing with OAuth and Swift Explorer (it's my local HTTP server index page). Else if I use the configuration for callback URL, the login page is not shown (a white page is shown instead) and after few seconds it close with an error "Login Failed". If I stop my HTTP server running on port 9000 all work correctly (without configuration file).

Version: Swift Explorer 1.0.8 OSX 10.11.6