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

Separate auth API from implementation and testing code #8183

Merged
merged 2 commits into from
Dec 7, 2020

Conversation

aherrmann-da
Copy link
Contributor

Factors out API definitions into separate Bazel targets so that the middleware does not need to depend on the OAuth2 test server and the trigger service does not need to depend on the middleware implementation.

Renames packages so that generic auth code sits under com.daml.auth and OAuth2 specific code lives under oauth2 namespaces.

Removes //triggers/service:auth-client-tests which was a left-over from #7226.

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

Split out the API types `Request`/`Response` into their own Bazel
targets, so that the trigger service does not have to depend on the full
middleware and OAuth2 test server targets.

Also rename packages: Generic auth code goes into `com.daml.auth`,
OAuth2 specific code goes into `com.daml.auth.oauth2` or
`com.daml.auth.middleware.oauth2`.

changelog_begin
changelog_end
This is a left-over from #7226.
Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Thanks!

@aherrmann-da aherrmann-da merged commit 4ac7b3f into master Dec 7, 2020
@aherrmann-da aherrmann-da deleted the trigger-testing branch December 7, 2020 15:17
stephencompall-DA pushed a commit that referenced this pull request Feb 17, 2022
- leftover from 4ac7b3f (#8183); we never need this target so it didn't
  matter
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