Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Browser window is inactive - Can't retrieve an authorization code #48

@FJBDev

Description

@FJBDev

Hello,
I have just discovered this library and was hoping to be able to use it.

The issue that I am encountering is the following :
I have created a sample code to retrieve an authorization code from the Dropox API (see code below).

 final UserAgent userAgent = new UserAgentImpl();
      AuthorizationResponse authorizationResponse;
      try {
         final URI authorizationEndpoint = new URI("https://www.dropbox.com/oauth2/authorize?" +
               "client_id=MYCLIENTID" +
               "&response_type=code" +
               "&force_reapprove=true");
         final URI redirectUri = new URI("");
         authorizationResponse = userAgent.requestAuthorizationCode(authorizationEndpoint,
               redirectUri);
         final String code = authorizationResponse.getCode();
         System.out.print("Authorization Code: ");
         System.out.println(code);
      } catch (final AuthorizationException | URISyntaxException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }

Once the browser window is loaded, if I enter my Dropbox credentials or if I use Google to authenticate myself, clicking on the Login button or Next doesn't trigger anything.

image

I don't see any exceptions being raised.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions