Company
Date Published
Author
Brian Pontarelli
Word count
808
Language
English
Hacker News points
2

Summary

The Implicit grant is a feature of the OAuth 2.0 protocol, but it has been omitted in the OAuth 2.1 specification due to its security risks and lack of secure token handling. This grant provides an access token on redirect without requiring server-side code, making it convenient for use with client-side applications such as those in the JAMstack. However, this convenience comes at a cost: the token is accessible to any JavaScript running in the browser, including third-party libraries, which poses a significant security risk. In contrast, the Authorization Code grant, which involves redirecting the user back to the application backend with an authorization code, provides a more secure way to obtain access tokens and should be used instead of the Implicit grant for single-page web applications.