We have a client and service app where the client sends a Bearer
token and we use that token on the service side to get AccessToken
for other services like Graph
endpoint. We are using the default TokenCache obtained using the AuthenticationContext. We are hitting an issue AdalException(AdalError.MultipleTokensMatched)
on the server side. My question is
1) The code is still in prototype and no one else is using the client or the service except me, how can I end up here?
2) What exactly does it mean by TokenCache
not ThreadSafe
, and is there any better implementations of TokenCache
on the service side which I can use rather than building it from scratch and validating.
{"multiple_matching_tokens_detected: The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements (e.g. UserId)"}