Comments (16)
+1
from signalr.
+1
from signalr.
Let's do this as a separate package.
from signalr.
Moving to next release.
from signalr.
Was this ever implemented? It would be extreme nice.
from signalr.
+1
from signalr.
Is there any way to accomplish this? Maybe to define a custom Authorization Manager like in WCF?
from signalr.
Sounds like an obvious feature to have added.
from signalr.
This feature means the possibility of:
From the HttpApplication.PostAutheticateRequest event handler get the Cookie of type FormsAuthentication
use FormsAuthenticationTicket.Decrypt method to get a Custom IPrincipal and use the custom information keeped on the Userdata information on the Hub dereived class?
i mean if now for my MVC controllers and my Webapi controllers i derived them from a class that can get my application information from my custom principal, iยดm going to be able to do the same?
Thanks
from signalr.
@jlsfernandez That's not right at all. Take a look at #548 for more context on this issue.
from signalr.
I saw thanks, meawhile if you know any URL where someone have play with an example of how to do it it will be helpful for me.
from signalr.
@jlsfernandez add the following to everything method you want authorized:
EnsureAuthented();
Definition:
private void EnsureAuthented()
{
// Makes sure the user is logged in
if (!Context.User.Identity.IsAuthenticated)
{
throw new InvalidOperationException("You're not authenticated");
}
}
The assumption is that you authenticate outside of SignalR and you use the same authenticated user to perform actions on the Hub. For outgoingm handle IConnected and call the EnsureAuthenticated
method in Connect and Reconnect.
from signalr.
+1 I need this too.
from signalr.
Fixed by 06ede37...996aff5
from signalr.
+1
from signalr.
verified
from signalr.
Related Issues (20)
- AspNetCore.SignalR.Client package on Server side produces error 500 when clients connect to the Server HOT 1
- SignalR: The server returned status code '200' when status code '101' was expected HOT 1
- Fallback on network blocking HOT 1
- Are all servers supposed to receive calls to server-side methods when using Redis backplane?
- Invicti Enterprise detected Possible Cross-site Scripting HOT 2
- HubConnection.Error handler is not called on connection error
- SignalR Configuration On Proxy DNS Server For NGINX HOT 1
- Android java client - RuntimeException: Invocation provides 1 argument(s) but target expects 0. HOT 1
- Intermittent failure to receive messages during e2e testing in github workflow HOT 1
- TopicLookup memory leak HOT 5
- Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1006 (no reason given) HOT 1
- Only one output binding is supported when using a binding assigned to '$return' HOT 1
- Ping from browser to ASP.Net application stops when the tab browser is not the active one
- SignalR not supporting self-signed certificates HOT 8
- SignalR C# client and deserialize using JsonSerializerContext (source generator)
- Arbitrarily disable a specific client or all
- Question: Can we use SignalR client for binance or other socket endpoints for stocks information? HOT 1
- Failed to invoke 'xxx' due to an error on the server. HOT 1
- Issue with Microsoft.AspNet.SignalR.Client hanging/crashing app after app being in background for 10 + minutes
- g
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalr.