This repository contains several quick and dirty examples built to test out various Okta use-cases using Flask Python Framework application and Python 3.10.6.
It was inspired by the Okta Flask Sample Applications and OAuth 2.0 Simplified Book by Aaron Parecki
It consists of the following examples:
Example | Description |
---|---|
oauth_4_okta | Tests autheticating with Okta and accessing APIs using the Oauth for Okta functionality |
okta_api_access | An example for accessing and protecting APIs with Okta. Contains an client that accesses authenticates with Okta and access a dummy API Resource Server that is protected by Okta, can be used to test API Access protection with Okta |
okta_api_integration | An example for Okta's API Service Integrations that allow you access Okta APIs using a service account |
okta_widget_login | An example that tests adding authentication to your web app using the Okta's widget in redirect mode or embeded mode. This also tests the new propriety Interaction code flow |
Before running these examples, you will need the following:
- An Okta Developer Account, you can sign up for one at https://developer.okta.com/signup/.
- At least one Okta Application, configured for Web mode. This is done from the Okta Developer Console and you can find instructions here.
- Your okta dev org URL (looks something like this: https://dev-xxx.okta.com/
To run these examples, you first need to clone this repo and then enter into this directory:
git clone [email protected]:eafigbo/okta_examples.git
cd okta_examples
Then install dependencies:
pip install -r requirements.txt
Follow the instructions in each project's README to run each example