Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update api for MI auth and update client package to use either client… #2294

Merged
merged 11 commits into from
Jun 16, 2022

Conversation

cofaulco
Copy link
Contributor

… secret or MI to obtain bearer token.

Copy link
Contributor

@ChrisJWoodcock ChrisJWoodcock left a comment

Choose a reason for hiding this comment

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

It looks like this isn't configured to be have audiences currently, so we should be doing this in a consistent style with other apps e.g. typically this is done using an AzureActiveDirectoryConfiguration section in the config file. Since there are not any clients (?) of the Finance API currently we could take the opportunity to drop the client configuration from employer config, not setting up the dependency in the client library and reduce the configuration to only the MI (ApiBaseUrl and IdentifierUrl) parts from the start and not bother checking for supplied client credentials.

@cofaulco cofaulco force-pushed the CON-4592_Finance-api-MI branch from 6c3f329 to 9b7e8d3 Compare June 8, 2022 15:46
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@cofaulco cofaulco merged commit 178f2f7 into master Jun 16, 2022
@cofaulco cofaulco deleted the CON-4592_Finance-api-MI branch June 16, 2022 07:47
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.

2 participants