摘要:Using the lib: Serilog.Sinks.Elasticsearch and ECS-dotnet which provide the ecs format, we can write log into es in ECS format. I have been able to ov 阅读全文
keycloak 配置DB
2023-02-17 15:33 by qgbo, 256 阅读, 0 推荐, 收藏, 编辑
摘要:docker hub 上搜keycloak 镜像,下载最多的是 https://hub.docker.com/r/bitnami/keycloak 这个怎么设置都是 postgreSQL In the office document, there is this words: The Bitnami 阅读全文
keycloak 添加 identity provider
2023-02-14 09:18 by qgbo, 339 阅读, 0 推荐, 收藏, 编辑
摘要:1. 启动 keycloak: 下载keycloak-20.0.3.zip, windows 版本。 2. kc.bat start-dev, 本地可以打开 localhost:8080 3.启动 一个 openId connect 服务。 这里用 identity: https://github. 阅读全文
ELK 连接ldap
2023-02-13 11:08 by qgbo, 179 阅读, 0 推荐, 收藏, 编辑
摘要:1. kibana 登录,连接 ldap, 最后还需要配ES: 这个是怎么配的:https://www.elastic.co/guide/en/elasticsearch/reference/7.17/built-in-users.html 但是 https://www.elastic.co/cn/ 阅读全文
keycloak user ferdera
2023-02-04 12:55 by qgbo, 17 阅读, 0 推荐, 收藏, 编辑
摘要:we can store user info into other user storage. the build-in provider is LADP and kerberos. but they are all very dificult. how the use data can be st 阅读全文
Keycloak themes
2023-01-17 18:09 by qgbo, 74 阅读, 0 推荐, 收藏, 编辑
摘要:start: docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:20.0.3 start-dev Keycloak has 3 them 阅读全文
Oath flow 2
2023-01-17 07:19 by qgbo, 7 阅读, 0 推荐, 收藏, 编辑
摘要:Client Credential : give 3rd party access to API on behalf of itself (service account) authrization code: 纯前端,可以无Client_Secret, 用PKCE。但是不管怎么操作,token 要 阅读全文
Oauth flow 1
2023-01-16 12:48 by qgbo, 364 阅读, 0 推荐, 收藏, 编辑
摘要:Implicit flow: 客户端组织 一个URL (下面是decodeURIComponent 解码过的 ):http://authServer/keycloak/realms/dev/protocol/openid-connect/auth?response_type=id_token tok 阅读全文
离线安装dotnet tool
2023-01-10 19:10 by qgbo, 275 阅读, 0 推荐, 收藏, 编辑
摘要:以安装dotnet-counters为例: 使用 https://www.nuget.org/packages/dotnet-counters/找到合适版本点击Download package 下载离线包建立文件夹 cli,把离线包放进去在文件夹外,运行命令 dotnet tool install 阅读全文
asp.netcore Authentication signOut
2023-01-05 17:54 by qgbo, 23 阅读, 0 推荐, 收藏, 编辑
摘要:.net 项目下面的写法会 logout: public class LogoutController : ControllerBase { public IActionResult Index() { return SignOut("Cookies", "OpenIdConnect"); } } 阅读全文