Skip to content

Authorization Request #31

@alannaidon

Description

@alannaidon

Hello!
I'm not sure if this is the place to get this kind of help, but I don't know where else to ask.

I already registered my APP and got my Client ID and Client Secret.
I followed the guide and downloaded Postman collection & environments, but I can't manage to make the /authorize request.

I ended up with the following endpoint

https://sandbox.opengateway.telefonica.com/apigateway/authorize
?client_id={{application-client-id}}
&response_type=code
&purpose={{api-product-purpose}}
&redirect_uri={{application-backend-callback-url}}
&state={{enduser-identifier}}
&login_hint=tel:+5555999999999 // also tried as `phoneNumber:+5555999999999`

According to Telefónica Sandbox page, login_hint is optional, but I'm getting the error saying it is missing even after adding it to query params.

StatusCode: 400
{
  "message": "Missing login_hint"
}

Also tried to access the URL from my mobile phone connected to the carrier's network and send it on body request, but got the same error.
I need some help to understand what am I missing.

Is it ok to use NGROK as a callback URL for tests? When registering my App I checked the MOCK Mode option.

obs:
I tried to make the request from Sandbox page, but it gives a different error. It does not redirect to the Callback URL I wrote.

https://sandbox.opengateway.telefonica.com/apigateway/auth/callback?code=eyJrZX...bigToken...=

Thanks a lot!

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