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)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

Retry later