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 8376161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:21:50+00:00 2026-06-09T15:21:50+00:00

Authentication and authorization can be integrated into Flask via the Flask-Login and Flask-Principal plugins.

  • 0

Authentication and authorization can be integrated into Flask via the Flask-Login and Flask-Principal plugins. (Or also potentially via the Flask-Security plugin.)

HOWEVER: Flask-Admin–another plugin which provides a backend dashboard–is not a registered blueprint…and, I believe (insomuch as I can tell), the decorators used by Flask-Login and Flask-Principal–and that are otherwise required for a user to access a rendered view…those decorators only operate on views that are part of a registered blueprint.

TWO QUESTIONS:

1) How do I register Flask-Admin as a blueprint in my app, and/or otherwise enable Flask-Login and/or Flask-Principal decorators to protect views associated with Flask-Admin?

2) Why do Flask-Login and Flask-Principal work only on objects which are “natively” part of my app…and not objects (e.g., “Admin” object) that is imported from a plugin? How can I work around this problem…if indeed I am perceiving it correctly?

I gather this is the problem insomuch as it’s no sweat for me to create protected views for my app’s main index page…or any other page with a view located inside a blueprint. I just can’t seem to do it for the Flask-Admin index page (which, again, has no blueprint).

  • 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-09T15:21:51+00:00Added an answer on June 9, 2026 at 3:21 pm

    Flask-Admin provides another way of providing authentication – you simply subclass the AdminIndex and BaseIndex views (or views from contrib if you only need those) and implement the is_accessible method. See the documentation for more details. There is also an example provided in the repository.

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

Sidebar

Related Questions

I'm developing an API which will also have an authentication/authorization component. Anybody, regardless of
I'm trying to take advantage of Symfony's authentication and authorization capabilities however I'm somewhat
I'm interested in what strategies can be used for handling user authentication and authorization
I have integrated spring security plugin with my grails application, which has hibernate as
Whenever I've worked with asp.net authentication / authorization in the past, I can remember
I set up the basic Authentication/Authorization set up, but a problem now is that
I'm writing a web based application that will have its own authorization/authentication mechanism (traditional
Summary Long story short, we've been tasked with gutting the authentication and authorization parts
I have been using devise for authentication and cancan for authorization in my application.
I've written a web applciation for a client in which authentication/authorization is done by

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.