You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently facing the problem on how to validate a session. But first my setup:
The login is managed by using the "default-authentication-flow", feeding the API with username and password. This works so far.
The question is, how do I validate that session on a different machine running a NestJS API Backend. I tried every possible approach I found online, starting with forwarding the cookies, set by Authentik after successfully logging in, to the API and making a request to /v3/core/users/me/ including these cookies, all the way to experimenting with JWT. None of that works.
There must be a simple approach for getting some sort of Bearer Token with the default-authentication-flow or am I wrong? What am I missing here?
I really hope somebody has an idea, because I am getting a little frustrated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody,
I am currently facing the problem on how to validate a session. But first my setup:
The login is managed by using the "default-authentication-flow", feeding the API with username and password. This works so far.
The question is, how do I validate that session on a different machine running a NestJS API Backend. I tried every possible approach I found online, starting with forwarding the cookies, set by Authentik after successfully logging in, to the API and making a request to /v3/core/users/me/ including these cookies, all the way to experimenting with JWT. None of that works.
There must be a simple approach for getting some sort of Bearer Token with the default-authentication-flow or am I wrong? What am I missing here?
I really hope somebody has an idea, because I am getting a little frustrated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions