Fórum
Ver pergunta

Web API OAuth 2.0 – Get Token Invalid URL   

58 visualizações
0
0

Hi,

We are following the Postman Guide to work with the Web API for Jasmin here (Postman – PRIMAVERA Developers Network (primaverabss.com)) but after following these instructions we get the following error page:

 

Do you know if any of the URLs mentioned in the link is incorrect, or if there is any missing step?

 

Thank you!

Faça login para poder traduzir
API Endpoints
Integration
Jasmin
Marcado como spam
Criado há 1 ano e 7 meses tiagoseixas
tiagoseixas Iniciante
Comentários
Hi tiago, what did you do exactly? I’m assuming you didn´t had already an account, so did you select “Create your account”? Then, what option did you take for sign up? “Microsoft, Google, Apple or Email”?
1 ano e 6 meses
eduardosilva
    Hi Eduardo, I used Google as a sign in account.
    1 ano e 6 meses
    tiagoseixas
      1 respostas
      0
      Resposta privada

      Following Eduardo's hint I created a regular account with Jasmin and got it working like this:

      r = requests.post(
                      url=self.options['auth_server_url'],
                      auth=(
                          self.options['client_id'],
                          self.options['client_secret']
                      ),
                      data={
                          'grant_type': 'client_credentials',
                          'scope': 'application',
                      }
          )

      This will return a valid token for a Client Credentials flow.

      Faça login para poder traduzir
      Marcado como spam
      Criado há 1 ano e 6 meses tiagoseixas
      tiagoseixas Iniciante