mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Removed Status endpoints from requiring Auth tokens
- auth tests now use service endpoints - one test commented out and needs reworked
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
|
||||
from flask import request, url_for
|
||||
from flask._compat import string_types
|
||||
from flask import Flask, _request_ctx_stack
|
||||
from flask.ext.sqlalchemy import SQLAlchemy
|
||||
@@ -53,10 +54,11 @@ def init_app(app, config_overrides):
|
||||
|
||||
@app.before_request
|
||||
def required_authentication():
|
||||
from app.authentication import auth
|
||||
error = auth.requires_auth()
|
||||
if error:
|
||||
return error
|
||||
if request.path != url_for('status.show_status'):
|
||||
from app.authentication import auth
|
||||
error = auth.requires_auth()
|
||||
if error:
|
||||
return error
|
||||
|
||||
|
||||
def convert_to_boolean(value):
|
||||
|
||||
Reference in New Issue
Block a user