identityserver4踩坑总结

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 验明模式

 

posted @ 2019-08-04 18:04  洛晨随风  阅读(5693)  评论(0编辑  收藏  举报