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

mc 4,066 Reputation points

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

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

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,071 Reputation points

    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