“Flash Oneid” Réponses codées

Flash Oneid

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

Flash Oneid

pip install Flask-OneID
ODILKHON MUKHTORKHUJAEV

Flash Oneid

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

Réponses similaires à “Flash Oneid”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code