معرفی شرکت ها


dash-okta-oauth2-0.0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Dash Okta OAuth2
ویژگی مقدار
سیستم عامل -
نام فایل dash-okta-oauth2-0.0.2
نام dash-okta-oauth2
نسخه کتابخانه 0.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Nico Hein
ایمیل نویسنده nico.hein@me.com
آدرس صفحه اصلی https://github.com/nicohein/dash-okta-oauth2
آدرس اینترنتی https://pypi.org/project/dash-okta-oauth2/
مجوز MIT
# Dash Okta OAuth2 Dash Okta Auth is a simple library using Okta OAuth2 to authenticate and view a [Dash](https://dash.plot.ly/) app. This Library uses [Flask Dance](https://github.com/singingwolfboy/flask-dance) and a modified version of Plotly's own [dash auth](https://github.com/plotly/dash-auth) for authentication. This Library is heavily inspired by [dash-google-oauth](https://github.com/lchapo/dash-google-auth) created by Lucas Chapin and forked from [dash-okta-auth](https://github.com/fspijkerman/dash-okta-auth) created by Frank Spijkerman. I decided to deploy to pip after I received no response to this [issue](https://github.com/fspijkerman/dash-okta-auth/issues/2). ## Basic Use Authentication can be added to your Dash application using the `OktaOAuth` class, i.e. ```python from dash import Dash from flask import Flask from dash_okta_oauth2 import OktaOAuth server = Flask(__name__) server.config.update({ 'OKTA_OAUTH_CLIENT_ID': ..., 'OKTA_OAUTH_CLIENT_SECRET': ..., 'OKTA_BASE_URL': ... }) app = Dash(__name__, server=server, url_base_pathname='/') additional_scopes = [...] auth = OktaOAuth(app, additional_scopes) # your Dash app here :) ... ``` ## Example Steps to try this out yourself: 1. Install the `dash-okta-auth` library using `pip`: ```bash $ pip install dash-okta-oauth2 ``` 2. Follow the [Flask Dance Guide](https://flask-dance.readthedocs.io/en/latest/quickstart.html) to create an app on the okta admin console 3. Make a copy of [app.py](https://github.com/nicohein/dash-okta-oauth2/blob/master/app.pyy) and set the variables (or set the corresponding environment variables): ```python server.config["OKTA_OAUTH_CLIENT_ID"] = ... server.config["OKTA_OAUTH_CLIENT_SECRET"] = ... ``` with values from the Okta OAuth 2 application you should have set up earlier. If you've set these up properly, you can find them at `Applications > yourapp > General` under the section **Client Credentials**. 4. Run `python app.py` and open [localhost](http://localhost:8050/) in a browser window to try it out! If the app loads automatically without prompting a Okta login, that means you're already authenticated -- try using an inokta window in this case if you want to see the login experience for a new user.


نیازمندی

مقدار نام
>=1.9.1 dash
>=1.8.1 dash-core-components
>=1.0.2 dash-html-components
>=1.1.1 Flask
>=3.0.0 Flask-Dance
>=1.4 blinker


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl dash-okta-oauth2-0.0.2:

    pip install dash-okta-oauth2-0.0.2.whl


نصب پکیج tar.gz dash-okta-oauth2-0.0.2:

    pip install dash-okta-oauth2-0.0.2.tar.gz