keithjgrant / omnibear

A Micropub browser extension
MIT License
36 stars 8 forks source link

Authentication does not work with local auth servers #15

Closed cweiske closed 6 years ago

cweiske commented 7 years ago

Authentication does not work with local auth servers that are non internet-reachable.

My auth server redirects to omnibear.com, and then I only see:

Omnibear Authentication successful

Retrieving access token...

And nothing happens because omnibear.com cannot reach http://anoweco.bogo/ that is running here locally on my laptop.

I can basically not test the extension locally.

keithjgrant commented 7 years ago

I just released a version 0.4.2 yesterday that should have improved error messages when authentication goes wrong. Can you verify you’ve got this version and see if the displayed message gives any more info?

cweiske commented 7 years ago

I actually installed the extension this morning.

omnibear.com cannot connect to 127.0.0.1, nor can it resolve my internal hostname.

keithjgrant commented 7 years ago

Omnibear.com doesn’t have to reach your local server, only the browser extension does (the omnibear.com page is just a static landing page to provide some user feedback). I’ll have to do some experimentation and see if the extension needs additional permissions to access this.

cweiske commented 7 years ago

This still happens with 0.5.0

keithjgrant commented 7 years ago

On the “Retrieving access token page”, what is the full url in your url bar? Can you see if there are any console errors?

You will need to check the console of the "background page":

  1. Navigate to chrome://extensions/
  2. Check "developer mode" box
  3. Click "Inspect views: background page" under the Omnibear extension
cweiske commented 6 years ago

The full URL is http://omnibear.com/auth/success/?code=ZW1vamk9JTVDMzYwJTVDMjM3JTVDMjIyJTVDMjUxJm1lPWh0dHBzJTNBJTJGJTJGY29tbWVudHBhcmEuZGUlMkZ1c2VyJTJGMy5odG0mc2NvcGU9cG9zdCtjcmVhdGUrZGVsZXRlK3VwZGF0ZSZzaWduYXR1cmU9RklYTUU%3D&me=https%3A%2F%2Fcommentpara.de%2Fuser%2F3.htm&state=very-secret-omnibear-state

There is nothing to see in the background page's console.

cweiske commented 6 years ago

Works fine with Omnibear 0.6.0 on Firefox 55.