Manually decode OAuth bearer token in c#

前端 未结 3 1594
走了就别回头了
走了就别回头了 2021-02-07 18:51

In my Web Api 2.2 OWIN based application I have a situation where I manually need to decode the bearer token but I don\'t know how to do this. This is my startup.cs

<         


        
3条回答
  •  余生分开走
    2021-02-07 19:45

    I created a sample project for deserializing bearer tokens, which are encrypted using the MachineKeyDataProtector. You can take a look at the source code.

    Bearer-Token-Deserializer

提交回复
热议问题