[Question] Token cache returns unintended auth token #787
Labels
confidential-client
For issues related to confidential client apps
Question
Any questions about how MSAL Java works
Hello, I just want to clarify the following scenario for the mssql-jdbc driver:
So, in the above code for the mssql-jdbc driver, we use the persistent token cache to cache the auth token. If the driver makes a successful initial connection using a valid initial entra principal service ID and entra principal secret, an auth token is appropriately cached. However, for example, on a subsequent connection after the first, if I use a valid entra principal service ID, but an invalid entra principal secret I successfully auth because of the prior cached auth token. Is this scenario expected? I assume because the entra principal secret has changed, should the token in the cache be invalidated and so in my described scenario I should fail in subsequent connections?
Example below to further to clarify:
For step 4, is this expected? I expected since the secret changed, the token in the cache should be invalidated and so the auth should fail.
The text was updated successfully, but these errors were encountered: