choerodon / iam-service

IAM Service is used for the management of user, role, permission, organization, project, password policy, fast code, client, menu, icon, multi-language , and supports for importing third-party users through LDAP.
http://choerodon.io
Apache License 2.0
39 stars 26 forks source link
c7nf choerodon java oauth2 spring spring-boot spring-cloud spring-cloud-eureka spring-oauth2

IAM Service

This service includes management functions of user, role, permission, organization, project, password policy, fast code, client, menu, icon, multi-language , and supports for importing third-party users through ldap.

There are three built-in roles in iam-service:

  1. Platform administrator (having all privileges of platform global layout).
  2. Organization administrator (having all privileges of a single organization's organizational layout).
  3. Project administrator (having all privileges of a single project's project layout).

    When assigning a role to a user, the role-associated labels are sent to the devops for processing, and the corresponding roles are assigned to gitlab.

Feature

Requirements

Installation and Getting Started

  1. Start up register-server
  2. In the local mysql, create the iam_service database.
CREATE USER 'choerodon'@'%' IDENTIFIED BY "123456";
CREATE DATABASE iam_service DEFAULT CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON iam_service.* TO choerodon@'%';
FLUSH PRIVILEGES;

New file of "init-local-database.sh" in the root directory of the manager-service project:

mkdir -p target
if [ ! -f target/choerodon-tool-liquibase.jar ]
then
    curl http://nexus.choerodon.com.cn/repository/choerodon-release/io/choerodon/choerodon-tool-liquibase/0.5.2.RELEASE/choerodon-tool-liquibase-0.5.2.RELEASE.jar -o target/choerodon-tool-liquibase.jar
fi
java -Dspring.datasource.url="jdbc:mysql://localhost/iam_service?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true" \
 -Dspring.datasource.username=choerodon \
 -Dspring.datasource.password=123456 \
 -Ddata.drop=false -Ddata.init=true \
 -Ddata.dir=src/main/resources \
 -jar target/choerodon-tool-liquibase.jar

And executed in the root directory of the iam-service project:

sh init-local-database.sh
  1. Go to the project directory and run mvn spring-boot:run or run IAMServiceApplication in idea.

Dependencies

Links

How to Contribute

Pull requests are welcome! Follow to know for more information on how to contribute.