Bearer Token provided by the same Token for Members and Users, only the last implemented Triggers JWT Events
Umbraco Version: 9.5
im working on a Project with Umbraco 9.5.0 and im Facing an Issue with the Authentication via JWT Token. I need to authenticated users and members Based on a BearerToken which gets passed from our Proxy to the Umbraco APP, which works fine for each Type of User if i only use it only for members or users, but not for both at the same time.
The problem which we encounter comes from setting the following, i know that and only left it in place to give you guys the complete Picture,
In order for the Tokens to get validated we actually need to challenge them, and without setting the DefaultAuthenticateScheme those events are not triggering. But this is also the crux which we face. Because we need to provide one scheme for users and one scheme for members and therefor we actually override the ChallengeScheme. We already tried to use the AddScheme method, but then we get an exception when we try to actually configure the scheme it self within the AddMemberLogin/AddBackOfficeLogin
If someone has an idea feel free to reach out, for everyone who wants to earn a few points on StackOverflow, i also have this question open there and have put a bounty on it: to SO
Bearer Token provided by the same Token for Members and Users, only the last implemented Triggers JWT Events
Umbraco Version: 9.5
im working on a Project with Umbraco 9.5.0 and im Facing an Issue with the Authentication via JWT Token. I need to authenticated users and members Based on a BearerToken which gets passed from our Proxy to the Umbraco APP, which works fine for each Type of User if i only use it only for members or users, but not for both at the same time.
The problem which we encounter comes from setting the following, i know that and only left it in place to give you guys the complete Picture,
In order for the Tokens to get validated we actually need to challenge them, and without setting the DefaultAuthenticateScheme those events are not triggering. But this is also the crux which we face. Because we need to provide one scheme for users and one scheme for members and therefor we actually override the ChallengeScheme. We already tried to use the AddScheme method, but then we get an exception when we try to actually configure the scheme it self within the AddMemberLogin/AddBackOfficeLogin
In the Startup we use the following:
and our Extension Methods Look like this:
If someone has an idea feel free to reach out, for everyone who wants to earn a few points on StackOverflow, i also have this question open there and have put a bounty on it: to SO
is working on a reply...