{"id":28568414,"url":"https://github.com/fspijkerman/dash-okta-auth","last_synced_at":"2025-06-10T16:12:00.102Z","repository":{"id":50189442,"uuid":"187818750","full_name":"fspijkerman/dash-okta-auth","owner":"fspijkerman","description":"Dash Okta Authentication","archived":false,"fork":false,"pushed_at":"2022-12-08T05:10:42.000Z","size":44,"stargazers_count":2,"open_issues_count":7,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T17:01:18.909Z","etag":null,"topics":["dash","dash-app","oauth2","okta","plotly-dash","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fspijkerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-21T10:51:43.000Z","updated_at":"2022-11-23T09:06:30.000Z","dependencies_parsed_at":"2023-01-24T12:00:14.829Z","dependency_job_id":null,"html_url":"https://github.com/fspijkerman/dash-okta-auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspijkerman%2Fdash-okta-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspijkerman%2Fdash-okta-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspijkerman%2Fdash-okta-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspijkerman%2Fdash-okta-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fspijkerman","download_url":"https://codeload.github.com/fspijkerman/dash-okta-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspijkerman%2Fdash-okta-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258828220,"owners_count":22763935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dash","dash-app","oauth2","okta","plotly-dash","python"],"created_at":"2025-06-10T16:11:59.470Z","updated_at":"2025-06-10T16:12:00.090Z","avatar_url":"https://github.com/fspijkerman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dash Okta Auth\n\nDash Okta Auth is a simple library using Okta OAuth to authenticate and\nview a [Dash](https://dash.plot.ly/) app.\n\nThis Library uses [Flask Dance](https://github.com/singingwolfboy/flask-dance)\nand a modified version of Plotly's own [dash auth](https://github.com/plotly/dash-auth)\nfor authentication.\n\nThis Library is heavily inspired by [dash-google-oauth](https://github.com/lchapo/dash-google-auth) created by Lucas Chapin\n\n## Basic Use\n\nAuthentication can be added to your Dash application using the `OktaOAuth`\nclass, i.e.\n\n```python\nfrom dash import Dash\nfrom flask import Flask\nfrom dash_okta_auth import OktaOAuth\n\nserver = Flask(__name__)\nserver.config.update({\n  'OKTA_OAUTH_CLIENT_ID': ...,\n  'OKTA_OAUTH_CLIENT_SECRET': ...,\n})\n\napp = Dash(__name__, server=server, url_base_pathname='/', auth='auth')\n\nadditional_scopes = [...]\nauth = OktaOAuth(app, base_url='https://myoktadomain.okta-emea.com', additional_scopes)\n\n# your Dash app here :)\n...\n```\n\n## Example\nSteps to try this out yourself:\n\n1. Install the `dash-okta-auth` library using `pip`:\n\n    ```bash\n    $ pip install dash-okta-auth\n    ```\n\n2. Follow the [Flask Dance Guide](http://flask-dance.readthedocs.io/en/latest/quickstarts/okta.html)\n   to create an app on the okta admin console\n\n3. Make a copy of [app.py](https://github.com/lucaschapin/dash-okta-auth/blob/master/app.py)\n   and set the variables (or set the corresponding environment variables):\n    ```python\n    server.config[\"OKTA_OAUTH_CLIENT_ID\"] = ...\n    server.config[\"OKTA_OAUTH_CLIENT_SECRET\"] = ...\n    ```\n   with values from the Okta OAuth 2 application you should have set up earlier.\n   If you've set these up properly, you can find them at\n   `Applications \u003e yourapp \u003e General`\n   under the section **Client Credentials**.\n\n4. Run `python app.py` and open [localhost](http://localhost:8050/) in a\n   browser window to try it out! If the app loads automatically without\n   prompting a Okta login, that means you're already authenticated -- try\n   using an inokta window in this case if you want to see the login\n   experience for a new user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspijkerman%2Fdash-okta-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffspijkerman%2Fdash-okta-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspijkerman%2Fdash-okta-auth/lists"}