Can anyone close this ? Its solverd
Update: Nevermind this was related with another library used in the project. You can close.
Thanks anyway
Context:
I'm working on a project which uses openid as one way of authentication. Last week was working just fine, no issues. Suddendly monday morning: hell. For no reason all environments DEV, QA, Prod were unable to login using this feature. There was no deployment, in production a while. All of these Apps are hosted on Azure App Services and I've checked the configuration, and nothing "apperently" has changed. Funny part: Is working on localhost.
After being redirected from OpenID, the return url forces the browser with 302 http status and location request header listed below: (i've replace the real token, for security reasons) `HTTP/1.1 302 Found Cache-Control: no-store, no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Location: http://example.com/account/login#id_token=ey{...}.eyJ{....}.{...}&state=Rn{..}6%3bopenIdConnect%253D1&session_state=558a7d74-e2cf-4e25-86ec-cd0a9f6f500f Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" x-ms-request-id: 96fbfb94-5412-460d-b1f9-d9e132bc7d00 x-ms-ests-server: 2.1.12011.8 - NEULR2 ProdSlices
Set-Cookie: fpc=ArP_u2aVQNNPkjsfQqhcuB4i0kDOBQAAAJyrytgOAAAA3201hQEAAACeq8rYDgAAAA; expires=Fri, 08-Oct-2021 13:03:56 GMT; path=/; secure; HttpOnly; Set-Cookie: x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly Set-Cookie: stsservicecookie=estsfd; path=/; secure; samesite=none; httponly Referrer-Policy: strict-origin-when-cross-origin Date: Wed, 08 Sep 2021 13:03:56 GMT Connection: close Content-Length: 1756
I can see for a split second the URL of my browser with the link above, but its very fast replaced with the default account/login route:
from:
https://example.com/account/login#id_token=ey{...}.eyJ{....}.{...}&state=Rn{..}6;openIdConnect%3D1&session_state=558a7d74-e2cf-4e25-86ec-cd0a9f6f500f
to
https//example.com/account/login
If i paste the url directly in the browser it works
https://example.com/account/login#id_token=ey{...}.eyJ{....}.{...}&state=Rn{..}6;openIdConnect%3D1&session_state=558a7d74-e2cf-4e25-86ec-cd0a9f6f500f
Another thing its that when i paste the url directly on the browser I have to press enter twice, maybe something related with the browsers, but i've experimented in FireFox, Brave, Edge and Chrome
Any hint/help would be great. Thanks
Unfortunately it's not an option as it's the User table. I have a Persons table which is linked to a User table in the case the person needs to login into the system.
I see a lot of other people mentioning these ids with big negative values like -2147482647. Nobody else is having the same problem?
I'm creating a new module for a Data Migration and I notice that when I do a _repository.Insert or _repository.InsertAsync it's not retuning a Temp ID (-2147482647) anymore. If I use InsertAndGetId or InsertAndGetIdAsync it works fine but it's way to slow as I need to do thousands of inserts.
I used to be able to create a User, Insert, and then use the user.Id on child entities while inside the same method decorated with a [UnitOfWork] and at the end it would insert them all correctly. This behaviour seems to have changed somehow between version 7.0 and 8.4.
Can someone help?
could you please send to [email protected]?
I'm using the RAD Tool in a project that I just downloaded a new version of and when I'm generating new entities it's using the old Templates. I know this because all the project screens are using the p-table while the ones i generate now are reverting to use the p-datatable.
How can I tell RADTool to use the new version of the Templates? I've been manually creating custom.txt templates copying the content from the new ones but there are somethings I can't access.
The project was created more than 6 months ago, but I downloaded a new version fresh this week.
I'm creating new templates as per https://docs.aspnetzero.com/en/common/latest/Development-Guide-Rad-Tool#how-to-edit-pre-defined-templates-or-create-a-new-template but I would like to add a condition to check if the file already exists and in that case don't overwrite it. Basically the idea is that my classes are now Partial and I want to create the Extender classes automatically as Empty. If they already exist I don't want to create them again as they might have code that I need to keep
Is this possible? I see that in the TemplateInfo.txt i have a condition field which is empty.
Can I add something there to check this?