microsoft / oauth2-useragent

Microsoft OAuth 2.0 User Agent library for Java. Provides classes to facilitate the implementation of "4.1. Authorization Code Grant" from RFC 6749.
Other
35 stars 22 forks source link

UserAgent fails to get a code on Ubuntu 15.10 #10

Closed yacaovsnc closed 8 years ago

yacaovsnc commented 8 years ago

When I ran on Ubuntu 15.10, the subprocess that starts JavaFx has some content in stderr stream:

pci id for fd 21: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

The process still loads up the JavaFx provider and retrieves a code successfully. I can see the code from stdout. However since we have this check:

  if (errorContents.length() > 0)

we just throw and quit.

We probably should verify the stdout and ignore stderr stream if the code is returned proper.

yacaovsnc commented 8 years ago

pr #11 merged.