IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit 1550f13f authored by Emi Simpson's avatar Emi Simpson
Browse files

[api] Update the AuthModule

parent b945905f
Pipeline #1088 failed with stage
in 49 seconds
......@@ -56,7 +56,7 @@
### Authentication
* **sso:** `Optional[str]` (valid url) - If SSO is enabled, the URL to direct the user to authenticate
* **sso:** `bool` - Indicates that SSO is enabled
* **direct:** `bool` - Indicates that direct auth is available
### Session
......
......@@ -154,10 +154,9 @@ def create_app(test_config: Optional[Dict[str, Any]] = None) -> Flask:
auth_module = cast(AuthModule, app.config['AUTH'])
if isinstance(auth_module, SamlAuth):
app.register_blueprint(v1_auth.AuthModule(True, auth_module.get_login_url()).get_blueprint())
app.register_blueprint(v1_auth.AuthModule(True, True).get_blueprint())
else:
app.register_blueprint(v1_auth.AuthModule(True, None).get_blueprint())
views.register_error_pages(app)
app.register_blueprint(v1_auth.AuthModule(True, True views.register_error_pages(app)
app.jinja_env.globals.update(uuid=uuid.uuid4)
app.jinja_env.globals.update(high_contrast=is_high_contrast)
app.jinja_env.globals.update(static_versioned=static_versioned)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment