Skip to content

applerdotxyz/keycloak-fab-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-AppBuilder With Keycloak and JWT


  • Clone the project:

    git clone https://github.com/applerdotxyz/keycloak-fab-demo.git
    

  • Build the docker image:

    docker compose up --build
    

    This will run the keycloak at localhost:8000

  • Go to localhost:8000

  • Create a Realm

  • Create a client

  • Create a User - give that User a Password. Set Temporary to off.


  • Create a .env file in your project folder.
  • add client id and secret from the Keycloak console in this format

KEYCLOAK_REALM=<Your-realm-name>

KEYCLOAK_CLIENT_ID=<Your-client-id>

KEYCLOAK_CLIENT_SECRET=<Your-client-secret>

  • Make a virtual enviroment:

    virtaulenv env
    
  • Launch the virtual enviroment:

    ./env/Scripts/activate.ps1
    
  • Install dependencies:

    pip install -r Requirement.txt
    
  • Run the fab app:

    flask run --host=0.0.0.0 --port=5000  # --debug --reload (if running on dubug mode add this)
    

    This will run the FAB app at localhost:5000

That's it!!

About

keycloak with flask app builder demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published