- Table of content
- CI
- How to run?
- OIDC Servers
- OIDC Clients
- OAuth2 Clients
- OAuth2 Resources Servers
- OAuth2 Middleware
- Blog
- Old version(ids3 and owin)
CI | Platform | Stauts |
---|---|---|
GitHub Action | Windows |
** use ie11 to run**
#34
⚠️ disable chrome samesite for test: chrome://flags/#same-site-by-default-cookies
## start docker
docker-compose up --detach --build
## stop docker
docker-compose down
Update local /etc/hosts
.
cat <<EOF >> /etc/hosts
127.0.0.1 traefik.test
127.0.0.1 oidc-server.test
127.0.0.1 oidc-client-hybrid.test
127.0.0.1 oidc-client-js.test
127.0.0.1 oauth2-resources-nodejs.test
127.0.0.1 oauth2-resources-aspnetcore.test
127.0.0.1 oauth2-resources-java.test
127.0.0.1 oauth2-client-aspnetcore.test
EOF
Use administrator run build.ps1
to deploy demo web site to local IIS. Required :
- vs 2019 16.4 +
- .net framework 4.6.1 sdk
- .net core 3.1 sdk
- ASP.NET Core Module
build.ps1 -help
build.ps1 -target {Task}
Task Description
================================================================================
clean 清理项目缓存
restore 还原项目依赖
build 编译项目
deploy-iis 部署到本机IIS
open-browser 用浏览器打开部署的站点
default 默认执行open-browser
web site | docker | windows | description |
---|---|---|---|
http://traefik.test | ✔ | reverse proxy : traefik | |
http://oidc-server.test | ✔ | ✔ | oidc server : asp.net core 3.1 |
http://oidc-client-hybrid.test | ✔ | ✔ | oidc client : asp.net core 3.1 |
http://oidc-client-implicit.test | ✔ | oidc client : asp.net owin 4 | |
http://oidc-client-js.test | ✔ | ✔ | oidc client : html js(use access_token call resource api) |
http://oauth2-resources-aspnetcore.test | ✔ | ✔ | oauth2 resources api : asp.net core 3.1 |
http://oauth2-resources-nodejs.test | ✔ | oauth2 resources api : node.js | |
http://oauth2-resources-java.test | ✔ | oauth2 resources api : java (spring boot) | |
http://oauth2-resources-owin.test | ✔ | oauth2 resources api : asp.net webapi 2 | |
http://oauth2-client-aspnetcore.test | ✔ | ✔ | oauth2 client : asp.net core 3.1 |
http://oauth2-client-owin.test | ✔ | oauth2 client : asp.net owin 4 |
- src/web.oidc.server.ids4 : ids4 (https://github.com/IdentityServer/IdentityServer4) example (with github, qqconnect external login).
- src/web.oidc.client.hybrid : web site, hybrid flow.
- src/web.oidc.client.implicit : web site, implicit flow.
- src/web.oidc.client.js : web site(static), implicit flow .
- src/uwp.oidc.client.authorization-code : uwp app, authorization code flow.
- src/wpf.oidc.client.authorization-code : wpf app, authorization code flow.
- src/web.oauth2.client.aspnetcore : asp.net core 3.1.
- src/web.oauth2.client.owin : asp.net owin.
- src/console.oauth2.client.client-credentials : console app, client credentials flow(oauth2).
- src/console.oauth2.client.resource-owner-password-credentials : console app, resource owner password credentials flow(oauth2).
- src/web.oauth2.resources.aspnetcore: asp.net core 3.1.
- src/web.oauth2.resources.owin: asp.net owin.
- src/web.oauth2.resources.nodejs: node.js.
- src/web.oauth2.resources.java: java (spring boot 2.2.1).
- src/oauth2.github.aspnetcore: asp.net core 3.1.
- src/oauth2.qqconnect.aspnetcore: asp.net core 3.1.
- src/oauth2.qqconnect.owin: asp.net owin.
If you want use QQ Connect or Github, please replace ClientId
and ClientSercet
in src/_shared/GlobalConfig.cs file.
public static class GlobalConfig
{
public static class QQConnect
{
public static readonly string ClientId = "You App Id";
public static readonly string ClientSecret = "You App Secret";
}
public static class Github
{
public static readonly string ClientId = "You App Id";
public static readonly string ClientSecret = "You App Secret";
}
}
Authentication and Authorization: http://www.cnblogs.com/linianhui/category/929878.html
OIDC in Action: http://www.cnblogs.com/linianhui/category/1121078.html