44,159 questions
Best practices
0
votes
2
replies
66
views
How to "sync" Prisma with sessions?
I have a node js code that authenticates with cookies and sessions:
import express from "express";
import session from "express-session";
import postgreSession from "connect-...
Advice
2
votes
1
replies
57
views
How is JWT more scalable than Session data
I have watched Session Vs JWT: The Differences You May Not Know! video and there is a notion of the fact that using JWT gives us better scalability because of the fact that we don't have to use ...
Score of 2
2 answers
65 views
Flask redirect causes session details not modified
I am building a simple shopping cart using cookie sessions to keep track on the content of the shopping cart.
I just added a function that would remove single item from the list of items. But I ran ...
Score of 0
0 answers
98 views
Extracting skills and professional experience from career networking platform profiles
I am automating login to a session-based website using Playwright, then reusing the extracted cookies in Python's requests library to call a protected API endpoint. The login works fine, but my ...
Score of 0
0 answers
100 views
Fetching another container from nextjs middleware in docker
I have a docker structure which contains backend (binded on localhost:3001) and frontend (binded on localhost:3002). In my frontend which uses NextJS framework, I have a middleware that check if the ...
Score of 0
0 answers
63 views
Cookie is not created in Blazor Server App
I'm working on a Blazor Server App which has to authenticate via LDAP (it works), and set a cookie so that the user must authenticate only e.g. once a week.
I have created a minimalAPI in the program....
Best practices
0
votes
0
replies
74
views
Store credentials session in the database or use JWT in AuthJS, NextJS?
Which session management strategy should I use in case mixing credentials and OAuth logic in AuthJS (next-auth) ? In official docs there is a recommendation to store everything in the db. It doesn't ...
Score of 1
1 answer
89 views
Rails 6, session keys are strings, contrary to all guides
I have been battling unreliable sessions with an old Rails project that has been maintained and upgraded for years.
A problem that has been getting worse over the years is that sessions are unreliable....
Advice
2
votes
0
replies
107
views
What's the difference between server.servlet.session.timeout, server.servlet.session.max-age and spring.session.timeout?
I followed this tutorial to get my authentication session up and running. However, I am unsure of the differences between spring.session.timeout, server.servlet.session.timeout and server.servlet....
Score of 0
0 answers
63 views
How use event 'after_bulk_update' in @event.listens_for() for sqlalchemy?
I try use SQL event "before_update" but it is not have reaction for method update(). I need "after_bulk_update" but it not have reaction on update() in my code too. I won't clear ...
Score of 0
0 answers
32 views
Using BFF-Session Auth - How to configure express session when deploying as SWA and Container App
I tried to follow this example of setting up an Session based authentification:
https://www.heise.de/hintergrund/Keine-Chance-dem-Token-Klau-Das-Backend-for-Frontend-Pattern-10988224.html?seite=all
...
Score of 1
0 answers
90 views
Tensorflow C API: First TF_SessionPRun() complains "Local rendezvous is aborting with status: CANCELLED: PRun cancellation" and subsequent calls fail
I am trying to use TF_SessionPRun() from Tensorflow C API.
I want to do consecutive calculations over a period of time. I do not have all the data available at the moment, data is streaming from an ...
Best practices
1
vote
1
replies
72
views
Where should I create the application session when using an internal SSO (Gin + OAuth2)?
I’m integrating an internal SSO (OAuth2) into a web application using Gin (Go), and I’m a bit unsure about the right place to create the application session.
The SSO is the only authentication ...
Score of 0
0 answers
132 views
.NET 8.0 getting session and authorization working together
I am having problems understanding how to get .NET 8.0 session and authorization working together.
Most of my controllers are decorated with the Authorize attribute, and I am accessing session ...
Score of 0
0 answers
62 views
Users getting 401 "Unauthorized" error after direct database credential/session deletion - Keycloak 26.3.0
Environment
Keycloak Version: 26.3.0
Deployment: Kubernetes (multiple pods)
Database: Oracle
Issue: Persistent 401 errors after database manipulation
Error message screen
Problem Description
After ...