Skip to content

fix(directory): skip Okta users without an email - #44

Merged
WhiteMuush merged 2 commits into
developfrom
fix/okta-email
Oct 13, 2026
Merged

WhiteMuush merged 2 commits into
developfrom
fix/okta-email

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

Closes #38 (closed manually on merge, closing keywords do not apply to develop).

Bug

An Okta user without an email fell back to its login, which is not always an address, so a login like ada.lovelace was stored and scanned as one. Same defect as the AWS connector fixed in #35. The login is now kept only when it is a valid email.

Leftovers

  • ldap.ts: ldapts is a dependency, so the dynamic import and its stale "npm install ldapts" hint go, and the LDAP client gets its real type instead of any.
  • aws.ts: unused DescribeUserCommand import and its void line removed.

Tests

Okta now covers pagination through the Link header, the active-users filter, the login fallback, API errors, both remediation calls and the connection test. Coverage floor raised (branches 51%, functions 50%).

Verified

make check green, integration suite 110/110.

A user without an email fell back to its login, which is not always an address. Okta pagination, errors and remediation calls are now covered too.
ldapts is a dependency, so the dynamic import with its install hint goes, and the client gets its real type. AWS loses an unused command import.
@WhiteMuush
WhiteMuush merged commit dbbac79 into develop Oct 13, 2026
14 checks passed
@WhiteMuush
WhiteMuush deleted the fix/okta-email branch October 13, 2026 09:20
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.

1 participant