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)

Postmark Image

The email service that speaks your language

Whether you code in Ruby, PHP, Python, C#, or Rails, Postmark's robust API libraries make integration a breeze. Plus, bootstrapping your startup? Get 20% off your first three months!

Start free