Files @ 1438a15c1120
Branch filter:

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

Dennis Fink
Add spaceapi v14 support
from flask import current_app
from flask.ext.httpauth import HTTPDigestAuth

httpauth = HTTPDigestAuth()


@httpauth.get_password
def get_pw(username):
    if username in current_app.config['HTTP_DIGEST_AUTH_USERS']:
        return current_app.config['HTTP_DIGEST_AUTH_USERS'][username]
    return None