Skip to content

Conversation

@jasperkamerling
Copy link
Contributor

No description provided.

Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
@jasperkamerling jasperkamerling changed the title Token file support Implement reading tokens from a resource Dec 23, 2025
@Test
fun `should retrieve token from msal library`() {
val testToken = "test-token-value"
`when`(confidentialClientApplication.acquireToken(any<ClientCredentialParameters>()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use mockk now instead of Mockito

import org.springframework.stereotype.Component

@Component
@Primary
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This @Primary can be removed, because the Conditions exclude each other


@Configuration
@Conditional(OAuthEnabledCondition::class)
@Conditional(OAuthMsalEnabledCondition::class)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this properties class work for FileTokenProvider with this condition? It does work, but I don't see how...

Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
Signed-off-by: Jasper Kamerling <jasper.kamerling@alliander.com>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants