Ejemplo n.º 1
0
 def admin():
     assert get_request_attr("fs_authn_via") == "session"
     return render_template("index.html", content="Admin Page")
Ejemplo n.º 2
0
 def http_custom_realm():
     assert get_request_attr("fs_authn_via") == "basic"
     return render_template("index.html", content="HTTP Authentication")
Ejemplo n.º 3
0
 def token():
     assert get_request_attr("fs_authn_via") == "token"
     return render_template("index.html", content="Token Authentication")
Ejemplo n.º 4
0
 def http_admin_required():
     assert get_request_attr("fs_authn_via") == "basic"
     return "HTTP Authentication"