MIT License

项目介绍

dfoxg/kratos-admin-ui 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 195 个 Star、29 次 Fork。

仓库全名
dfoxg/kratos-admin-ui
开源许可证
MIT License
Star 数
195
Fork 数
29
未关闭 Issue
2

README 摘要

kratos-admin-ui A simple admin interface for ory/kratos. Made with react und microsoft/fluentui. Features Following a overview over the features of kratos-admin-ui: List identites You get a searchable and sortable overview of all identites: Single select identites When you select one identity, the toolbar is getting expanded with actions like View Edit Delete Recovery Multiselect identites You can also do a delete…

完整内容见 GitHub 原始 README 或本页 。

常见问题

kratos-admin-ui 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 195 个 Star。

kratos-admin-ui 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 kratos-admin-ui 的源码?

可以直接克隆仓库:git clone https://github.com/dfoxg/kratos-admin-ui.git,默认分支为 main;安装与运行步骤见仓库 README。

kratos-admin-ui 最近还在维护吗?

仓库最近一次更新为 9月5日,当前有 2 个未关闭 Issue;Star 数为 195,可作为社区活跃度的参考。

关于

A simple Admin-Interface for ory/kratos

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
256
价值分
125
活跃状态
归档

语言占比

Dockerfile
HTML
JavaScript
SCSS
Shell
TypeScript

Release

README

kratos-admin-ui

A simple admin interface for ory/kratos. Made with react und microsoft/fluentui.

Features

Following a overview over the features of kratos-admin-ui:

List identites

You get a searchable and sortable overview of all identites:

listIdentities

Single select identites

When you select one identity, the toolbar is getting expanded with actions like

  • View
  • Edit
  • Delete
  • Recovery

singleSelectIdentity

Multiselect identites

You can also do a delete and/or recovery action on multiple identites simultaneous multiselectIdentities

View identity

If you want to see all attributes of a identity, you can open it in detail view. viewIdentity

Create identites

To create a new identity you have to first select the identity schema which you configured in kratos. All identity traits getting rendered dynamically.

createIdentity

Edit identity

You can edit all identity traits on the edit page. editIdentity

Run

To run the image, you have to provide two environment variables:

  • KRATOS_ADMIN_URL: the admin url of your kratos instance
  • KRATOS_PUBLIC_URL: the public url of your kratos instance

You should follow the kratos best practices, which recommends to never expore the admin-api to the internet, since there is no authentication.

To run the admin-ui, which of course needs access to the admin-api, you should run the admin-ui in the same network as kratos.

In the following snipped the admin-ui gets deployed in the same docker network (kratos_intranet) as kratos - over the Docker-Compose-DNS resolution the nginx reverse proxy can call the admin

docker run -it \
--rm -p 5173:8080 \
-e KRATOS_ADMIN_URL=http://kratos:4434 \
-e KRATOS_PUBLIC_URL=http://kratos:4433 \
--network kratos_intranet \
ghcr.io/dfoxg/kratos-admin-ui

or look at docker-compose.yml

Optional Environment Variables

  • NAMESERVER: the nameserver to use for dns resolution for kratos urls. By default, it reads values from /etc/resolv.conf, so it works well without setting this value in many runtimes. If there is no /etc/resolv.conf, it will be set to 127.0.0.11 (Docker dns).

Start local

It is required, that a local instance of ory kratos is running. the latest tested version is v25.4.0.

cd kratos-admin-ui
npm install
node cors-proxy.js // starts a cors-proxy for the admin-api, so the browser can make requests
npm run start

Build Docker-Image

cd kratos-admin-ui
docker build -t kratos-admin-ui .

评论

暂无评论