/okta-oauth2-proxy-example

Primary LanguageJavaApache License 2.0Apache-2.0

OAuth2 Proxy Example

This example app shows how to use OAuth2 Proxy with Okta.

Please read Add Auth to Any App with OAuth2 Proxy to see how this app was created.

Prerequisites:

Okta has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.

Getting Started

To install this example application, run the following commands:

git clone https://github.com/oktadev/okta-oauth2-proxy-example.git
cd sokta-oauth2-proxy-example

Create an Application in Okta

Before you begin, you’ll need a free Okta developer account. Install the Okta CLI and run okta register to sign up for a new account. If you already have an account, run okta login.

Then, run okta start to configure the application, and write the OAuth configuration to a .env file.

Start the Application

To start the applciatin run docker compose up. This will build and run the application in containers.

Links

This example uses the following libraries provided by Okta:

Help

Please post any questions as comments on this repo's blog post, or visit our Okta Developer Forums. You can also email developers@okta.com if you would like to create a support ticket.

License

Apache 2.0, see LICENSE.