Reputation: 155
we have three projects
now i want to implement authentication on 3rd project. we already implement token based authentication on 2nd project so i was thinking is it safe to pass just token on 3rd project and then validate it on 3rd project by calling a web service (2nd project ) method ? other approach is we generate two different token for each project on login ? what is the best way ?
Upvotes: 0
Views: 250
Reputation: 3611
It's safe and maybe easier to you to use the second solution token to authenticate user to call your SignalR hub. If you are going to target users with signalR that are same as your project n#2, there is no need to create a separate authentication. If you diferenciate the users in the project n#3 than yes, you would need to create another token for that.
You can read more about SignalR authentication and authorization in this microsoft documentation.
Upvotes: 1