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:
Martyn Inglis
2016-01-19 15:32:33 +00:00
parent 8c43ccac7e
commit fa30782d70
2 changed files with 34 additions and 25 deletions

View File

@@ -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):