Reputation: 33
I want to send the credentials for the @auth.login_required to access my other methods in my Flask Webapp with a browser.
I know with Curl is: curl -u username:password -i http://localhost:5000/method
Some example ?
i send like this username:password@localhost:5000/method but didn´t work
Upvotes: 0
Views: 343
Reputation: 456
On method GET:
http://localhost:5000/method?login='mylogin'&password=123
Upvotes: 1
Reputation: 1521
Typically, browsers will present you with a prompt to enter your credentials. Try simply navigating to the endpoint and see if your browser allows you to enter your credentials.
Upvotes: 0