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