I have 2 independent servers - one A for user (auth, refresh, details, registration), the other one B - for data.
if I want to access data on server B, I need to validate token first of all, that means that in my B server endpoint I need to call a
check
method from A server. Is it correct?
n
nfrankel
01/04/2019, 8:34 PM
is your question specific to kotlin?
s
savrov
01/04/2019, 9:18 PM
my server is written in Kotlin, using ktor
m
Miguel Gomes
01/05/2019, 11:55 AM
I would say this is a arch decision, and not kotlin specific...
Miguel Gomes
01/05/2019, 11:57 AM
depends on technology that you are using for authentication/validation, for example if you are using JWT you have all information to validate user without call check... assuming you don't care about revoke..
if you are using a different technology you probably need to call server B, depends...