Skip to content

Problem when logging in from the APP #3

@otrebmuh

Description

@otrebmuh

After succesfully building the App, we are trying to login to the BeaconControl server but we are having problems with it. This is the error trace:

Error Domain=com.up-next.BCLBeaconCtrl Code=-10 "<NSHTTPURLResponse: 0x7f891282e040> { URL: http://10.0.1.37/s2s_api/v1/oauth/token } { status code: 401, headers {
    "Cache-Control" = "no-store";
    Connection = "Keep-Alive";
    "Content-Length" = 213;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Wed, 22 Jun 2016 22:09:14 GMT";
    Pragma = "no-cache";
    Server = "WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)";
    "Www-Authenticate" = "Bearer realm=\"Doorkeeper\", error=\"invalid_grant\", error_description=\"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.\"";
    "X-Content-Type-Options" = nosniff;
    "X-Frame-Options" = SAMEORIGIN;
    "X-Request-Id" = "ccf9b94a-0eaa-4a07-ad27-c72c130f0cf0";
    "X-Runtime" = "0.543507";
    "X-Xss-Protection" = "1; mode=block";
} }" UserInfo={NSLocalizedDescription=<NSHTTPURLResponse: 0x7f891282e040> { URL: http://10.0.1.37/s2s_api/v1/oauth/token } { status code: 401, headers {
    "Cache-Control" = "no-store";
    Connection = "Keep-Alive";
    "Content-Length" = 213;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Wed, 22 Jun 2016 22:09:14 GMT";
    Pragma = "no-cache";
    Server = "WEBrick/1.3.1 (Ruby/2.2.4/2015-12-16)";
    "Www-Authenticate" = "Bearer realm=\"Doorkeeper\", error=\"invalid_grant\", error_description=\"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.\"";
    "X-Content-Type-Options" = nosniff;
    "X-Frame-Options" = SAMEORIGIN;
    "X-Request-Id" = "ccf9b94a-0eaa-4a07-ad27-c72c130f0cf0";
    "X-Runtime" = "0.543507";
    "X-Xss-Protection" = "1; mode=block";
} }, BCLResponseDictionaryKey=<CFBasicHash 0x7f89107ee7a0 [0x1016ada40]>{type = immutable dict, count = 2,
entries =>
    0 : error = <CFString 0x7f891073ac80 [0x1016ada40]>{contents = "invalid_grant"}
    1 : <CFString 0x7f89107ee8e0 [0x1016ada40]>{contents = "error_description"} = <CFString 0x7f89107f18e0 [0x1016ada40]>{contents = "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
}
}

We are sure the client ID, secret and login / password are correct. Does anybody have an idea o what may be going wrong?

Note: This is with the master branch.

Thank you.

Humberto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions