“Flask Oneid” Code-Antworten

ONEID -Flask

from flask_oneid import OneID
from flask import *
def create_app():
    oneid = OneID()
    app = Flask(__name__)
    app.config.from_pyfile('config.py')
    oneid.init_app(app)
    
    @app.route("/", methods=['GET'])
    def index():
        return "Hello World"
    
    return app

app = create_app()

if __name__ == "__main__":
    app.run(debug=True)
ODILKHON MUKHTORKHUJAEV

Flask Oneid

pip install Flask-OneID
ODILKHON MUKHTORKHUJAEV

ONEID -Flask

ONEID_LOGIN = "your login"
ONEID_PASSWORD = "your pasword"
ONEID_URL = "url from OneID" # defaul https://sso.egov.uz/sso/oauth/Authorization.do
ODILKHON MUKHTORKHUJAEV

Ähnliche Antworten wie “Flask Oneid”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen