Hi, could someone please guide me on how to identify the api caller. (username or email)
I have successfully set up Authentik reverse proxy provider. Now the user will be prompted with Authentik flow login page if the source is protected by nginx.
Then the user will be logged in and will probably makes a subsequent api call to my rest api backend server from the web application.
The question is how could my GO server knows who made the call so I could implement something like role middleware, or owner middleware? From projects I have worked with, our GO backend will read the data from previously issued JWT, check the token validity, and provide the context of caller UID. Is there a way my Go backend server could communicate with Authentik server?
I'm a mobile dev learning backend, sorry if my explanation is a bit confusing. 😅