IdentityServer4 usage of IdentityServerTools to create a token from within identity server

纵然是瞬间 提交于 2019-12-06 07:12:21

问题


I'm using IdentityServer4 and have a scenario where I need to initiate a call to a secured API during a password reset process. IdentityServer4 does provide IdentityServerTools for the purpose of calling a secured resource from an extensibility point, however there is currently no documentation or examples for the indented usage.

How does one go about creating the necessary token using the provided methods in IdentityServerTools?


回答1:


IdentityServerTools is available from DI. Simply inject it into your class and call the method to create a client token.

https://docs.identityserver.io/en/latest/topics/tools.html



来源:https://stackoverflow.com/questions/41470124/identityserver4-usage-of-identityservertools-to-create-a-token-from-within-ident

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!