Using Postman and Insomnia, i managed to get a token from my oauth server, but i have no idea what to do with it. I’m pretty sure the only problem is that i don’t configure it properly in bubble.
Here is a working protocol from Postman, in order for it to work, i have to send a password and a username with the body, which i can’t do right now in bubble:
I’ve just tried it, and it still didn’t work - i got the same error message (it seems as the app runs with ?debug_mode=true at the end of the url by default anyways)
OAuth2 User-Agent Flow
The scope of it is to redirect a user to url from “Login dialog redirect” where he will be able to enter his credentials. On success, the user will be redirected back with a “code” parameter in url that will be used for the “Access token endpoint”. Also, it’s required to have an endpoint for “User profile endpoint” that will retrieve info (id and email) about the authenticated user from your WordPress site.
In additional, you need an API Endpoint that will refresh a user’s access token.
Yes, this is exactly what i’m trying to do.
I have all of the required endpoints, and using Postman, i manage to get an access_token, but not in bubble.
Remove those shared client id and client secret parameters. Those values should probably only go up at the top in App ID (client id) and App Secret (client secret)
Check “Authentication goes in the header” and change the Token name to “Authorization: Bearer” … I can see in your postman response that the token type is “bearer” which is why I suggest this
See if that gets you any new results when you run your app with debug mode and click on signup/login with your API. Seeing as you have a username/password situation with Postman, it seems like the access token may be using Basic Auth, so you might also need to check that box at the top.