WinForms, EnableSecurityPrincipalFlowFromClient and ApplicationContext.User null in the DataPortal #3621
-
Its' 2023, but I have a WinForms NetCore project that is using Csla business library that we have happily already got an API using. Problem occurs when the Authorization rules fire as the Principal and User properties on ApplicationContext are null, so obviously the user is not authorized...... In 2023, with Csla 7.03 and a Winforms client, what's the setup needed? As I understand from the docs, Windows authentication will NOT flow the identity to the server-side portal, so I've tried this config (I'm happy to accept the risk here) to force it.
My login code is successfully getting the user and their claims...and I'm setting ApplicationContext whereever I can (in hope :-))
but my form blows up when trying to _portal.FetchAsync with the authentication rules throwing an exception as portal has not got any principal or user.
What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The client and server need the same configuration. Have you configured the app server with |
Beta Was this translation helpful? Give feedback.
The client and server need the same configuration. Have you configured the app server with
EnableSecurityPrincipalFlowFromClient
?