Articles by brian

Fixing Certificate Errors with Cisco AnyConnect

"AnyConnect cannot confirm it is connected to your secure gateway. The local network may not be trustworthy. Please try another network."

There may be several reasons for this error, which you'll find on other pages that hit for a search on this string.

The reason that I encountered seems ...

Testing HTTP Basic Auth in Flask

I created a quick & dirty admin page for a flask-based website I'm working on, and I had to add HTTP authentication support for it. Doing this is easy.

In the app, I add:

import auth

# ...

@app.route('/admin/', methods=['GET'])
@auth.requires_auth
def admin_page():
    # ... code to fetch info from ...

« Page 6 / 19 »