跳至正文
Wener Notes

OIDC

约 1 分钟阅读
  • endpoints
    • /healthz
    • /ready
    • /.well-known/openid-configuration
    • /authorize - AuthorizationEndpoint
    • /authorize/callback?id - AuthorizationEndpoint
    • /oauth/token
    • /oauth/introspect - IntrospectionEndpoint
    • /userinfo - UserinfoEndpoint
    • /end_session - EndSessionEndpoint
    • /keys - KeysEndpoint
  • 设置环境变量 CAOS_OIDC_DEV 进入开发模式 - 支持 http
  • 参考
bash
# http://localhost:9998/.well-known/openid-configuration
CAOS_OIDC_DEV=1 go run github.com/caos/oidc/example/server/default
# http://localhost:5556/login
CLIENT_ID=web CLIENT_SECRET=web ISSUER=http://localhost:9998/ SCOPES=openid PORT=5556 go run github.com/caos/oidc/example/client/app
text
http://localhost:9999/authorize?client_id=web&response_type=code&scope=openid&redirect_uri=http://localhost:9999/authorize/callback
  • mock client
    • web
    • native
    • 其他
  • mock login?id=id
  • client 也需要设置 dev 模式 - 否则无法回调到 http

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • Go Awesome
    笔记 · caos/oidc

    https://go-proverbs.github.io/ · mux · chi - ⭐️ · gin, mux · ORM · gorm - ⭐️ · 基于反射 · 目前 Go 里实现最为优美的 ORM · XORM 被 gogs 和 gitea 使用,是 gogs 原作者开发 - 但认为比不上 gorm

参考资料

GitHub1 条
其他外链2 条
最近更新commit 6b73767编辑