Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8039729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:40:08+00:00 2026-06-05T03:40:08+00:00

I am using flask-peewee to build a new project. Also I am using the

  • 0

I am using flask-peewee to build a new project. Also I am using the REST interface that is included in flask peewee. I followed the example here http://flask-peewee.readthedocs.org/en/latest/getting-started.html#exposing-content-using-a-rest-api and http://flask-peewee.readthedocs.org/en/latest/rest-api.html#rest-api
so I ws able to get my rest api up and running including adding the Auth to Rest.

However my problem is I am not able to secure the GET request. I have so far browsed through the source code for rest.py https://github.com/coleifer/flask-peewee/blob/master/flask_peewee/rest.py but not able to find where this is coming from though I did find a lot of good stuff I can use later.

It seems by default the REST API only secure the POST/PUT/DELETE but not GET.

I don’t want to make a hack of using flask url secure, I was hoping the flask peewee has some inbuilt method for this. Or if this is a known limitation then what is a good way to handle this

any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:40:09+00:00Added an answer on June 5, 2026 at 3:40 am

    Sorry you had trouble finding this information. You can specify a list of HTTP verbs to require authentication on when instantiating your auth class:

    # when instantiating your authentication
    api_auth = UserAuth(auth, protected_methods=['GET', 'POST', 'PUT', 'DELETE'])
    read_only_auth = UserAuth(auth) # default protected methods are POST/PUT/DELETE
    

    Here is a link to the docs:

    http://flask-peewee.readthedocs.org/en/latest/api.html#authenticating-requests-to-the-api

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Flask-WTF: Here is my form: from flask.ext.wtf import Form, TextField class BookNewForm(Form):
Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken)
While programming under eclipse+PyDev and using Flask framework, I noticed that the auto-organizing imports
I'm making a new website to replace a current one, using Flask micro-framework (based
I'm creating a blog (and the rest of a website) using Python and Flask
In flask, I'm using the following snippet to enable HTTP auth: def authenticate(): return
I'm currently working on a project using Flask and Google App Engine . Calling
I'm a Flask beginner and I want to build a poll app using flask
I am working on a web development project using flask and sqlalchemy orm. My
I have written a small webapp using the flask framework that involves plotting using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.