Code Monkey home page Code Monkey logo

Comments (6)

dpgaspar avatar dpgaspar commented on May 19, 2024

Hello,

You can:

  • Use the config key AUTH_USER_REGISTRATION_ROLE to set the role to be assigned to self registration users.
  • Like you've said i'm using local db first to register Admin users to use with OpenID or LDAP or REMOTE_USER.

I've been thinking about providing a simple admin script to help setup some features, like this one.
something like manager.py with some functions like create_admin.

What do you think?

from flask-appbuilder.

hsum avatar hsum commented on May 19, 2024

Hi Daniel,

I think having a create_admin script would be very helpful to get that first administrator user created. Then that admin can set the roles of other users who should have admin access. I wonder if there needs to be a superadmin that cannot be edited by anyone. This would be a good way to insure that other admins do not accidentally change the role of that first admin user. I think wikipedia has some tired user roles?

I recently read about click and it might suitable for manager.py:
http://click.pocoo.org/

thank you and Happy New Year!

from flask-appbuilder.

dpgaspar avatar dpgaspar commented on May 19, 2024

Happy new Year!

Nice idea, and it's from a maker of Flask, i'll look into it. I Will keep this open until i have a solution.

from flask-appbuilder.

dpgaspar avatar dpgaspar commented on May 19, 2024

I found this also: http://flask.pocoo.org/docs/dev/cli/

This could be very interesting.

from flask-appbuilder.

dpgaspar avatar dpgaspar commented on May 19, 2024

New version will have a command line utility to do it.

You will be able to:

Create a fresh app
Create Admin users
Reset User passwords
Babel extract
Babel Compile
Run dev server

(and maybe some more).

from flask-appbuilder.

hsum avatar hsum commented on May 19, 2024

Awesome! Thank you.

from flask-appbuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.