OAuth2 Example
Learn how OAuth2 can be used with a code example.
Overview
We can integrate our application with the Google OAuth2 server with the help of the ScribeJava framework.
The example in this lesson uses a little bit more coding. Let’s look at our files and examine each one in more detail.
Create the project
We start from our previously defined project template and add the required dependencies and classes.
- If you want to work within the Educative platform, simply use the project we’ve created at the end of this lesson. If you choose to work locally, you will need to create a Maven project oauth2 as described in “Introduction to Window Shopping.*
Add Maven dependency
Get hands-on with 1400+ tech skills courses.