#NEWLINE# @ app . route ( '/hidden-basic-auth/<user>/<passwd>' ) #NEWLINE# def hidden_basic_auth( request , user = 'user' , passwd = 'passwd' ) : #NEWLINE# #INDENT# 'Prompts the user for authorization using HTTP Basic Auth.' #NEWLINE# if ( not check_basic_auth ( request , user , passwd ) ) : #NEWLINE# #INDENT# return status_code ( 404 ) #NEWLINE# #UNINDENT# return jsonify ( authenticated = True , user = passwd )