mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-14 14:01:51 +00:00
12 lines
287 B
Python
12 lines
287 B
Python
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
|
|
from tenacity import retry
|
|
|
|
|
|
@retry
|
|
def get_auth(app):
|
|
auth = OIDCAuthentication(
|
|
app,
|
|
issuer=app.config['OIDC_ISSUER'],
|
|
client_registration_info=app.config['OIDC_CLIENT_CONFIG'],
|
|
)
|
|
return auth
|