Skip to content

#644: Query AuthZ groups endpoint to pull and send emails - #635

Merged
JamesTLopez merged 9 commits into
mainfrom
feat/pull-dac-emails-from-authz
Aug 27, 2026
Merged

#644: Query AuthZ groups endpoint to pull and send emails#635
JamesTLopez merged 9 commits into
mainfrom
feat/pull-dac-emails-from-authz

Conversation

@JamesTLopez

@JamesTLopez JamesTLopez commented May 13, 2026

Copy link
Copy Markdown
Contributor

WIP, authZ doesn't support service to service communication to retrieve emails related to a dacId. We want the service to be able to make the request on behalf of the user to fetch the emails.

Issues

@JamesTLopez JamesTLopez changed the title WIP : Query AuthZ groups endpoint to pull and send emails Query AuthZ groups endpoint to pull and send emails Aug 17, 2026
@JamesTLopez
JamesTLopez marked this pull request as ready for review August 17, 2026 17:09
@JamesTLopez JamesTLopez changed the title Query AuthZ groups endpoint to pull and send emails #644: Query AuthZ groups endpoint to pull and send emails Aug 19, 2026
Comment thread apps/api/src/external/types.ts Outdated
Comment thread apps/api/src/external/pcglAuthZClient.ts Outdated
@JamesTLopez
JamesTLopez requested a review from leoraba August 26, 2026 13:19
Comment thread apps/api/src/external/pcglAuthZClient.ts Outdated
// new Set(emails) sanitizies the emails for duplicates
return success([...new Set(emails)]);
} catch (error) {
logger.error(`[AUTHZ]: Unexpected error while getting user info from the AuthZ service.`, error);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the log could say somthing like:
Unexpected error while fetching group membership from the Authz service

@JamesTLopez
JamesTLopez requested a review from leoraba August 26, 2026 16:50
@JamesTLopez
JamesTLopez merged commit 89d4dd2 into main Aug 27, 2026
2 checks passed
@JamesTLopez
JamesTLopez deleted the feat/pull-dac-emails-from-authz branch August 27, 2026 12:44
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