-
Notifications
You must be signed in to change notification settings - Fork 1
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
CAMS-283 - Okta adapter #902
Conversation
3066ce7
to
6197900
Compare
backend/functions/lib/adapters/gateways/okta/okta-user-group-gateway.test.ts
Outdated
Show resolved
Hide resolved
backend/functions/lib/adapters/gateways/okta/okta-user-group-gateway.test.ts
Outdated
Show resolved
Hide resolved
81023ed
to
bb65a3c
Compare
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
Jira ticket: CAMS-283
2dd8872
to
0de51c0
Compare
Jira ticket: CAMS-283
backend/functions/lib/testing/isolated-integration/test-okta-group-api.ts
Show resolved
Hide resolved
backend/functions/lib/testing/isolated-integration/test-okta-group-api.ts
Show resolved
Hide resolved
backend/functions/lib/testing/isolated-integration/test-okta-group-api.ts
Show resolved
Hide resolved
* initialize | ||
* | ||
* Creates an Okta Client instance and retains it in module scope as a singleton. | ||
* Subsequent calls to initialize return the previously created instance. | ||
* | ||
* See: https://github.com/okta/okta-sdk-nodejs?tab=readme-ov-file#oauth-20-authentication | ||
* See: https://github.com/okta/okta-sdk-nodejs?tab=readme-ov-file#known-issues | ||
* | ||
* @param config UserGroupGatewayConfig | ||
* @returns | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed recently that we've been leaving comment blocks like this to describe functions and their inputs/outputs presumably for some documentation generators etc. Is this a practice we should all start utilizing? What is the reasoning behind it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is JSDoc. I did use it here to point to relevant Okta documentation since this is an integration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily needed for all functions and "documentation lies" so I don't have a strong opinion to say it is something we should always do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. JSDocs are useful in that they are used by IDE's to provide details when using the function (or class, etc.). They can certainly lie, but it should be more apparent. It also appears that we may be able to add a linter or plugin that should help keep them up-to-date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have other uses too, but we aren't taking advantage of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a few small things to fix or explain away.
Jira ticket: CAMS-283
Purpose
Get group membership information from Okta.
Testing/Validation