Cannot authenticate to

Bug #1438393 reported by Michael Zanetti
This bug affects 1 person
Affects Status Importance Assigned to Milestone
signon-plugin-oauth2 (Ubuntu)
Fix Released
Alberto Mardegan

Bug Description

I'm trying to create an OAuth plugin for However it keeps failing.

I got it to working with this diff:

Revision history for this message
Alberto Mardegan (mardy) wrote :

What is the reply that you get from the server?
Does it work if you move the " || contentType.startsWith(CONTENT_TEXT_HTML)" condition to the "else if" branch?

Changed in signon-plugin-oauth2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Zanetti (mzanetti) wrote :

The reply is in json format. However, the content type header is set to "text/html" for some reason. I assume it would work for the "else if" branch too, as that one seems to fall back to the jsonParser if the plaintextParser fails. Haven't tried it though and I wiped my device with this branch already.

Changed in signon-plugin-oauth2 (Ubuntu):
status: Incomplete → New
Revision history for this message
Alberto Mardegan (mardy) wrote :

This is fixed in the upstream project (, I'll upload it to Ubuntu in the next few days.

Changed in signon-plugin-oauth2 (Ubuntu):
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package signon-plugin-oauth2 - 0.24+16.10.20160818-0ubuntu1

signon-plugin-oauth2 (0.24+16.10.20160818-0ubuntu1) yakkety; urgency=medium

  * New upstream release
    - OAuth2: allow token URL to be on a different host (LP: #1588210)
    - OAuth2: accept replies carrying text/html content type (LP: #1438393)
    - Enable CI on
  * debian/control, debian/rules:
    - Don't run tests in dbus-test-runner
    - Update link to project homepage

 -- Alberto Mardegan <email address hidden> Thu, 18 Aug 2016 07:22:39 +0000

Changed in signon-plugin-oauth2 (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.