How to use token which is create in web api in signalr ?

mc 3,681 Reputation points
2021-09-13T10:01:13.057+00:00

If it is login in web api how to use it directly in signalr?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,066 Reputation points
    2021-09-14T07:53:25.133+00:00

    Hi @mc ,

    You need firstly send the request to the account controller to auth. Then if the login success, it will return an access token to the client.

    Then the client will use this access token to access the api resources.

    The identity has its own logic to check the access token.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Yijing Sun