DEV Community

kareemrb27
kareemrb27

Posted on

Can non browser app use OAuth application code grant type

We have a requirement to call Snapchat APIs from the non-browser application. These APIs use OAuth for authentication with a grant-type authorization code.

This grant type needs a redirect URI to authenticate with an external application and generate a code that can be used to create tokens.

We don't have a redirect URI as ours is a non-browser application that needs to pull(GET) data from Snapchat.

How do we generate tokens as we don't have to redirect URI? Is the autoriation_code grant type suitable for non-browser-based applications?

Refer Snapchat API Specifications for token generation: https://marketingapi.snapchat.com/docs/#user-auth-via-redirect

Top comments (0)

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay