Mautic Community Forums

Invalid token errors and authorisation error.

I have succeeded to make functional API, as oAuth1 and oAuth2. Unfortunately both APIs are not working in the end.

For testing I have used API tester (please see https://github.com/mautic/api-library/blob/master/apitester/index.php). I have tried regular Postman callback. Therefore I am not convinced, whether the documentation is valid.

Variant with oAuth1: Authorized - when the lead is input into Mautic, I receive the error: “Invalid token”

Variant with oAuth2: When authorized, I receive parameters code and state. This parameters should be later used for receiving own token. When I get accessToken, there is an error invalid_grant and error message: “The authorization code has expired”. Unfortunately I haven’t received any parameters, yet.



Can you help with this one, please?



Thank you!

I have succeeded to make functional API, as oAuth1 and oAuth2. Unfortunately both APIs are not working in the end.
For testing I have used API tester (please see https://github.com/mautic/api-library/blob/master/apitester/index.php). I have tried regular Postman callback. Therefore I am not convinced, whether the documentation is valid.
Variant with oAuth1: Authorized - when the lead is input into Mautic, I receive the error: “Invalid token”
Variant with oAuth2: When authorized, I receive parameters code and state. This parameters should be later used for receiving own token. When I get accessToken, there is an error invalid_grant and error message: “The authorization code has expired”. Unfortunately I haven’t received any parameters, yet.

Can you help with this one, please?

Thank you!

Anyone?

Have the same problem over here !

Having the same problem, did you find a solution?

think i found the problem, i use the same key for multiple servers (local, dev and test)
I need to create 1 key per server