-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to view the exact requests performed by pow_assent? #201
Comments
Ok, so after some testing I figured out that the specific problem here was that my However, after fixing it (and experimenting a lot on the cli) I found a new problem: Twitch expects a The error I get from assent, which isn't very useful, is Here's an example of the error in action outside of assent (at least I think that's the one I'm getting, I still have no way to access the original error body from the twitch api):
So my question now is, can I add headers to my user fetching request? It seems like you can only add request params in the Or perhaps should this be standard behavior? I could try adding this to the |
Yeah, the |
Thanks, it's in master branch, I'll release a new version soon. Feel free to open another PR to add Twitch support in Assent 😄 |
I'm using Phoenix with a very basic twitch strategy based on the built-in oauth2 strategy, and the defaults for everything else (templates, views, controllers, schemas, etc).
Logging in works, but after being redirected to my callback uri I get a 404, and I'd like to know why, so it'd be very helpful if I could see exactly what requests are being performed by the oauth2 strategy.
Here's my strategy, which is the same as the example one except for a few replaced fields to match the twitch api:
I suspect my issue might be related to the
user_url
config field but my speculations aren't very helpful if I can't use curl for testing the requests myself.The text was updated successfully, but these errors were encountered: