首页 > 其他 > 详细

identityserver4踩坑总结

时间:2019-08-04 20:00:10      阅读:331      评论:0      收藏:0      [点我收藏+]

1.在配置id4服务端的时候要注意client里面的 AllowedScopes开放的值要和GetIdentityResources中加入的值是一样的,不然调用以后报{"error":"invalid_scope"}错误。

2.在netcore的configservice上配置id4服务的时候要加签名凭据,具体可以看这个:

https://stackoverflow.com/questions/46142991/what-is-the-signing-credential-in-identityserver4

这里他默认使用的是jwt的模式,我用的netcore2.2,所以不加AddDeveloperSigningCredential()方法会报No signing credential is configured. Can‘t create JWT token的错误,这个方法的大约意思应该是加入jwt token 验明模式

 

identityserver4踩坑总结

原文:https://www.cnblogs.com/llcdbk/p/11299058.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!