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