Files @ 76bc951639c1
Branch filter:

Location: C3L-NOC/spaceapi/spaceapi/auth.py

Dennis Fink
Fixed sensors.py
from flask import current_app
from flask.ext.httpauth import HTTPDigestAuth

httpauth = HTTPDigestAuth()

@httpauth.get_password
def get_pw(username):
    if username == current_app.config.get('HTTP_DIGEST_AUTH_USER'):
        return current_app.config.get('HTTP_DIGEST_AUTH_PASSWORD')
    return None