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

[FEAT] allow callout service to generate users for any account #197

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

aricart
Copy link
Member

@aricart aricart commented Mar 23, 2023

No description provided.

@aricart aricart marked this pull request as draft March 23, 2023 20:58
@aricart aricart marked this pull request as ready for review March 23, 2023 22:48
@coveralls
Copy link

coveralls commented Mar 23, 2023

Pull Request Test Coverage Report for Build 4511694331

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 80.957%

Totals Coverage Status
Change from base Build 4441923524: 0.03%
Covered Lines: 2691
Relevant Lines: 3324

💛 - Coveralls

@@ -206,7 +206,12 @@ func (ac *ExternalAuthorization) Validate(vr *ValidationResults) {
}
}
for _, a := range ac.AllowedAccounts {
if !nkeys.IsValidPublicAccountKey(a) {
if a == "*" && len(ac.AllowedAccounts) > 1 {
Copy link
Member

Choose a reason for hiding this comment

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

Make a const?

if a == "*" && len(ac.AllowedAccounts) > 1 {
vr.AddError("AllowedAccounts can only be a list of accounts or '*'")
continue
} else if a == "*" {
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe const AnyAccountAllowed = "*"

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart aricart merged commit 535a767 into main Mar 24, 2023
@aricart aricart deleted the any-account branch March 24, 2023 16:02
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