Duende.IdentityServer.Admin
Duende.IdentityServer.Admin copied to clipboard
摸索了一早上,终于搞明白怎么启动sts和adminui,简单记录一下:
Question
文档里没有说明要如何启动服务,只好各种猜,总结一下启动过程
Relevant parts of the log file
如何下载本项目,及如何安装dotnet再不赘述。 为方便,建议使用MSSQL数据库。 1、修改配置: Skoruba.Duende.IdentityServer.Admin、Skoruba.Duende.IdentityServer.Admin.Api、Skoruba.Duende.IdentityServer.STS.Identity项目中的appsettings.json文件中的ConnectionStrings,可以是同一个数据库。
2、启动Skoruba.Duende.IdentityServer.STS.Identity Skoruba.Duende.IdentityServer.STS.Identity.exe --urls="https://localhost:44310"
3、启动Skoruba.Duende.IdentityServer.Admin.Api Skoruba.Duende.IdentityServer.Admin.Api.exe --urls="https://localhost:44302"
4、启动Skoruba.Duende.IdentityServer.Admin Skoruba.Duende.IdentityServer.Admin.exe --urls="https://localhost:44303"
为什么是44310、44302、44303? 因为在这三个项目的appsettings.json中指定了必需是这三个端口,如果要变更,则相应要修改配置文件中的端口。
最后,启动 https://localhost:44303/,可以看到管理员界面 https://localhost:44310/,可以看到客户端界面
管理员如何登录在项目中并没有说明,我也没有找到admin的密码到底是多少,有一个简单的办法就是自己注册一个新用户,然后在数据库里把Users表中的PasswordHas和SecurityStamp、ConcurrencyStamp修改为你新注册用户的对应值。
祝你好运,尽情的造吧。