Giter Club home page Giter Club logo

legit's Introduction

Application Name

Overview

This application provides an HTTP service that allows users to create and manage Keycloak realms.

Prerequisites

Before running the application, you must have the following installed on your system:

  • Docker
  • Docker Compose

Running the Application

  1. Clone the repository:
    git clone https://github.com/razlm/legit.git

  2. Change to the project directory:
    cd legit

  3. Build and run the containers using Docker Compose:
    docker-compose up --build



Using the Application

Creating a Realm

To create a realm, send a POST request to the /create_realm endpoint with the following parameters:

  • realm_name: The name of the realm to create.

I've got some issues in the end, you need to exec -it to the flask docker and then run the command - docker ps - docker exec -it [Docker-ID] bash and then:

For example:

curl -X POST http://localhost:5001/create_realm -H 'Content-Type: application/json' -d '{"realm_names": ["myrealmexample"]}'

Creating Multiple Realms

To create multiple realms, send a POST request to the /create_realms endpoint with the following parameters:

  • realm_names: A list of realm names to create.
    For example:

curl -X POST http://localhost:5001/create_realm -H 'Content-Type: application/json' -d '{ "realm_names": ["myrealm1", "myrealm2"]}'

Updating Password Creation Policy

To update the password creation policy for all existing realms, send a POST request to the /update_password_policy endpoint with the following parameters:

  • min_length: The minimum length of passwords.
  • min_lower: The minimum number of lowercase characters in passwords.
  • min_upper: The minimum number of uppercase characters in passwords.
  • min_digit: The minimum number of digit characters in passwords.
  • min_special: The minimum number of special characters in passwords. <br/ >
    For example:

Not Working well!


curl -X POST http://localhost:5001/update_password_policy -d '{"min_length": 8, "min_lower": 1, "min_upper": 1, "min_digit": 1, "min_special": 1}'

legit's People

Contributors

razlm avatar

Watchers

 avatar

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.