-
Notifications
You must be signed in to change notification settings - Fork 296
cloudsso - make api resource access call cloudsso and fallback to zms #3051
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
Conversation
Signed-off-by: aporss <[email protected]>
Signed-off-by: aporss <[email protected]>
Signed-off-by: Artjoms Porss <[email protected]>
Signed-off-by: aporss <[email protected]>
Signed-off-by: aporss <[email protected]>
ui/src/server/clients.js
Outdated
| msd: CLIENTS.msd(req, setCookieinClients(req)), | ||
| zts: CLIENTS.zts(req, setCookieinClients(req)), | ||
| ums: CLIENTS.ums(req, setCookieinClients(req)), | ||
| cloud_sso: CLIENTS.zms(req, setOktaCookieinClients(req)), |
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.
it might be a better idea to create a separate client for cloud_sso but point it to zms rdl. Also is this the first cloud_sso is being referenced in here? If yes, lets add a small comment on the rationale behind CLIENTS.cloud_sso
Signed-off-by: aporss <[email protected]>
| // cloud_sso is a cache of zms's resource access lists | ||
| CLIENTS.cloud_sso = rdlRest({ | ||
| apiHost: config.cloud_sso, | ||
| rdl: require('../config/zms.json'), | ||
| requestOpts: { | ||
| strictSSL: config.strictSSL, | ||
| }, | ||
| }); |
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.
@abvaidya added separate client and comment as requested
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.
@ArtjomsPorss please fix the lint issue
Signed-off-by: aporss <[email protected]>
Signed-off-by: aporss <[email protected]>
Description
call cloud sso for resource access list, fallback to zms on error
Contribution Checklist: