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

Integration: update experimental external principals API with auth service #7566

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

Isan-Rivkin
Copy link
Contributor

Closes #7564

@Isan-Rivkin Isan-Rivkin changed the title swagger update Integration: update external principals API with auth service Mar 17, 2024
@Isan-Rivkin Isan-Rivkin self-assigned this Mar 17, 2024
@Isan-Rivkin Isan-Rivkin requested a review from idanovo March 17, 2024 15:18
@Isan-Rivkin Isan-Rivkin added the exclude-changelog PR description should not be included in next release changelog label Mar 17, 2024
Copy link

E2E Test Results - DynamoDB Local - Local Block Adapter

10 passed

api/swagger.yml Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

assets/something../swagger which is a copy of this one, should be updated too (happens automatically when you run build locally)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was just WIP, its added now

Copy link

github-actions bot commented Mar 18, 2024

♻️ PR Preview 05e4840 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@Isan-Rivkin Isan-Rivkin requested a review from idanovo March 18, 2024 11:19
@Isan-Rivkin Isan-Rivkin added include-changelog PR description should be included in next release changelog and removed exclude-changelog PR description should not be included in next release changelog labels Mar 18, 2024
@Isan-Rivkin Isan-Rivkin changed the title Integration: update external principals API with auth service Integration: update experimental external principals API with auth service Mar 18, 2024
@@ -1133,14 +1133,14 @@ paths:
default:
$ref: "#/components/responses/ServerError"

/auth/users/{userId}/external/principals/{principalId}:
/auth/users/{userId}/external/principals:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think userID should also be in the query
It will be less painful in case we decide we don't really want to attach principal to users

Copy link
Contributor Author

@Isan-Rivkin Isan-Rivkin Mar 18, 2024

Choose a reason for hiding this comment

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

Why? it operates on a user resource, a different functionality would require a new endpoint.
The only reason removing the principalId is due to limitation of the swagger.
This pattern is similar to our GetObject / UploadObject / ListObjects API's.

default:
$ref: "#/components/responses/ServerError"


/auth/external/principals:
Copy link
Contributor

Choose a reason for hiding this comment

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

why twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

redundancy 😉 (removed now)

@Isan-Rivkin Isan-Rivkin requested a review from idanovo March 18, 2024 13:57
Copy link
Contributor

@idanovo idanovo left a comment

Choose a reason for hiding this comment

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

LGTM

@Isan-Rivkin Isan-Rivkin merged commit 54d2f77 into master Mar 18, 2024
36 of 37 checks passed
@Isan-Rivkin Isan-Rivkin deleted the 7564-principal-api-mgmt-integration branch March 18, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration: update experimental external principals API with auth service
3 participants