#OAuth2 Authentication API issues

1 messages · Page 1 of 1 (latest)

cyan cave
#

Hello everyone,
I'm trying to integrate our Oauth2 APIs in our AppSmith applications. The API is correctly responding, but AppSmith returns a nginx error 405.
Attached you can find both the configuration i'm using for the API, and the response. What can i do to be able to read the access_token i'm receving as response?

earnest capeBOT
#

Hey There,

We've registered your query, and our team will get back to you soon.

Regards,
Team Appsmith

cyan cave
#

Thanks :°)

hidden torrent
#

Hello @cyan cave , have you tried using our authenticated API to perform OAuth2 authentication?

cyan cave
#

I don't need authentication to run the api, i need to send credentials to the Oauth2 API to authenticate different users

earnest capeBOT
#

I think the authentication API can still serve the purpose.
What kind of credentials if I may ask?

#

Do they need to be part of the request body or reqeust header?

cyan cave
#

should be in the body

earnest capeBOT
#

This should work with the normal API in that case

cyan cave
#

but it's giving 405 METHOD NOT ALLOWED

earnest capeBOT
#

Method not allowed should be an error from your API, not on appsmith.

#

Maybe you're using a GET method where you're supposed to be using a POST method

cyan cave
#

as per first screenshot, i'm using a POST

hidden torrent
#

Hello @cyan cave , could you please try running your API in an external manager like Postman to check that this is a bug in Appsmith?

cyan cave
#

Managed to solve another way, instead of embedding FusionAuth API, i'm using their login page, and passing via URL parameters all the required values (code_challenge, client_id etc etc)

earnest capeBOT
#

That's great! Has this resolved your issue?

cyan cave
#

Yes