Didier Villevalois
03/26/2021, 4:47 PMHttpClient
used by my OAuthAuthenticationProvider
. It correctly receives the access_token
.
Now my question is what to do from there. I did put all my routes (this app is fully private) in authenticate
, that is: my index /
route, my static /static
route (which serves the output.js
file of my app) and my /data
web-socket route.
However, it seems that every requests are handled by authentication
, the requests to /static/output.js
and to /static/favicon.ico
are all been redirected to keycloak and silently back to ktor. (The requests to my /data
websocket also hangs but...)
It seems to me that I should put the access_token
in my response as cookie or something in order for ktor to know it doesn't have to ask for a redirect. But it is not clear from the documentation what I should exactly do for authentication
to reuse the previously obtained access_token
.
Thanks in advance for your help.rharter
03/27/2021, 2:53 PMDidier Villevalois
04/06/2021, 1:14 PM