You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I tried both versions 3.1.0 and 4.0.0-beta, and it seems this library completely omits support for grantType with client_credentials, do I understand that correctly?
(PS. version 3.1.0 - there's a fatal error when doing a fresh composer install because of an interface mismatch with the psr package, so the current published version is unusable.)
So it seems, using OAuth2, this library is incapable of just doing a simple POST request to the server and capturing an access_token. It tries to redirect me between pages and asks me to log in as a user...?
I was trying to use this Mautic API Library to communicate between my web application and my self-hosted Mautic server, and so far I've spent 3 hours trying to get a basic connection going with OAuth2.
I've deep-dived through the code for generating an access_token, and it doesn't seem to make any sense, there's no mention of client_credentials anywhere in the OAuth code.
Here's some simple example code to test the OAuth2:
{"errors":[{"code":401,"message":"The response has unexpected status code (401).\n\nResponse: {\"errors\":[{\"message\":\"API authorization denied.\",\"code\":401,\"type\":\"access_denied\"}]}"}]}
Using CURL in terminal, I'm able to generate an access token using client_credentials without any issues.
The text was updated successfully, but these errors were encountered:
Hi there! Perhaps you might be able to find the time to test this PR: #269 which introduces this feature. The only reason it's not merged is due to a lack of testers.
Hi there! Perhaps you might be able to find the time to test this PR: #269 which introduces this feature. The only reason it's not merged is due to a lack of testers.
Tested PR: #269 in my build server and it is working.
This is a low risk merge:
Introduces a new file to extend available functionality.
Does not change or effect existing functionality or behavior.
Adheres to abstract and follows code standards and exception handling.
Improves README.MD with new documentation.
I vote to merge and released PR: #269 immediately, as it is a critical feature.
So I tried both versions 3.1.0 and 4.0.0-beta, and it seems this library completely omits support for grantType with
client_credentials
, do I understand that correctly?(PS. version 3.1.0 - there's a fatal error when doing a fresh composer install because of an interface mismatch with the
psr
package, so the current published version is unusable.)So it seems, using OAuth2, this library is incapable of just doing a simple POST request to the server and capturing an
access_token
. It tries to redirect me between pages and asks me to log in as a user...?I was trying to use this Mautic API Library to communicate between my web application and my self-hosted Mautic server, and so far I've spent 3 hours trying to get a basic connection going with OAuth2.
I've deep-dived through the code for generating an
access_token
, and it doesn't seem to make any sense, there's no mention ofclient_credentials
anywhere in the OAuth code.Here's some simple example code to test the OAuth2:
The result is always a 401 unauthenticated:
Using CURL in terminal, I'm able to generate an access token using
client_credentials
without any issues.The text was updated successfully, but these errors were encountered: