{ "info": { "author": "Frank Spijkerman", "author_email": "fspijkerman@schubergphilis.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: Implementation :: CPython" ], "description": "# 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 > yourapp > 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.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fspijkerman/dash-okta-auth", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dash-okta-auth", "package_url": "https://pypi.org/project/dash-okta-auth/", "platform": "", "project_url": "https://pypi.org/project/dash-okta-auth/", "project_urls": { "Homepage": "https://github.com/fspijkerman/dash-okta-auth" }, "release_url": "https://pypi.org/project/dash-okta-auth/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Dash Okta Auth", "version": "0.0.1" }, "last_serial": 5297685, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e0fadeef95e4f16e6ebefcaa13e69b9c", "sha256": "6603a8f5192243c8b722d192cebf5d26a906218d64417ce4b90319cecaeec87e" }, "downloads": -1, "filename": "dash-okta-auth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e0fadeef95e4f16e6ebefcaa13e69b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11219, "upload_time": "2019-05-21T12:30:03", "url": "https://files.pythonhosted.org/packages/c8/dd/9cba79c3c16e0af162f3eef3e4579f1b1552117a40af6de29943a76fb153/dash-okta-auth-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e0fadeef95e4f16e6ebefcaa13e69b9c", "sha256": "6603a8f5192243c8b722d192cebf5d26a906218d64417ce4b90319cecaeec87e" }, "downloads": -1, "filename": "dash-okta-auth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e0fadeef95e4f16e6ebefcaa13e69b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11219, "upload_time": "2019-05-21T12:30:03", "url": "https://files.pythonhosted.org/packages/c8/dd/9cba79c3c16e0af162f3eef3e4579f1b1552117a40af6de29943a76fb153/dash-okta-auth-0.0.1.tar.gz" } ] }