Thanks @maliming and @demirmusa
@demirmusa, what do you mean by "It is designed this way from the start"?
any news?
Yes. But every tenant has roles. When I configure static roles in the system they aren't added to existing tenants but new tenants only. I need them to be added to existing tenants as well
What do you mean by Start without Debugging ? How can I do this?
Hi
New roles are applied to new created tenants only. Do you have an option to create a new role for existing tenants as well? I sometimes have migrations that not only envolve schema updates but also data (Seed data for all tenants) and I'm not sure if you have guidelines that help managing this
Thanks
Hi @demirmusa
I'm sorry I can't provide a demo project. As I understood @ismcagdas is working to try reproducing and fixing the problem. Does this override the previous state of this ticket and demo is really blocking you now?
Hi @ismcagdas
Many cases are pointing to this one but I'm not 100% sure. It's a problem that worths investigating I think since I encounter it many times in debugging and users in production started complaining about a similar case
Attaching the validatedToken if it helps:
{{"alg":"HS256","typ":"JWT"}.{"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier":"9","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name":"admin","AspNet.Identity.SecurityStamp":"SQCXBUYKAOGSPZ6AKQV2TOC5ZXE3X6NI","http://schemas.microsoft.com/ws/2008/06/identity/claims/role":["Admin"],"http://www.aspnetboilerplate.com/identity/claims/tenantId":"2","Application_StudyYearId":"4","sub":"9","jti":"400fd00d-3479-43da-82e0-e4f6c65bd538","iat":1574614578,"token_validity_key":"62d29227-3ce2-4e67-9395-3c68044d9c30","user_identifier":"9@2","token_type":"0","nbf":1574614578,"exp":1574700978,"iss":"MyApp","aud":"MyApp"}}
I was able to reproduce now. I launched the backend in debugging mode and I run frontend 32min later (npm start)
Hi @maliming
I can't reproduce in 30seconds. It takes more time and I don't know the exact time. I feel like 30+mins