asp.net web form client with identity server 4

前端 未结 1 1591
有刺的猬
有刺的猬 2021-02-02 15:04

I have a asp.net solution which consists of

1). asp.net identity server rc 3
2). asp.net Core web api
3). asp.net webform ( not in asp.net core, client)
<         


        
相关标签:
1条回答
  • 2021-02-02 15:30

    Late answer, but hopefully it helps someone, still supporting web forms.
    There is no problem to use startup together with web forms. The only limitation is no place for AuthorizeAttribute there, but it's still not a problem, just put:

    app.UseStageMarker(PipelineStage.Authenticate);
    

    at the bottom of your

    public void Configuration(IAppBuilder app)
    

    method within OWIN Startup.

    An example Startup implementation could be fetched from my github. It works with MVC, Web Forms and additionally brings JWT validation from IdentityServer v.3' codebase, upgraded to compile with the latest OWIN libraries.


    If I still left anything unclear, don't hesitate to ask in the comments.

    0 讨论(0)
提交回复
热议问题