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