WebApi OAuth UseOAuthBearerAuthentication gives “Sequence contains more than one element” error

后端 未结 1 542
清歌不尽
清歌不尽 2020-12-18 00:09

I configured my WebApi OAuth 2.0 by these lines:

    app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions
    {
        Provider = new OAuth         


        
相关标签:
1条回答
  • 2020-12-18 00:50

    It should be a bug! Use

    app.UseOAuthAuthorizationServer(OAuthOptions);

    instead of

    app.UseOAuthBearerTokens(OAuthOptions);

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