-
Notifications
You must be signed in to change notification settings - Fork 158
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
Change profile endpoint on Carbon Masthead for signed in state #4701
Comments
@ljcarot Can you let us know when this ISV change is being made and when our change is required? Thanks. |
This change is needed now. The Carbon change should be in January release and v18 can be any time before end of January. It needs to be done in advance of ISV cut over tentatively set for late January. |
@RobertaJHahn can you add to the next engineering refinement meeting to size? I also will need to get back to Rick McCarty on a whitelist for lower environment testing. |
@jeffchew Done |
@jeffchew has provided Rick with a list of domains we need whitelisted. Waiting for those domains to be whitelisted so we can test the new endpoint locally. |
### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state #4701 ### Description Change profile endpoint which no longer allows for jsonp to get around CORS errors. Set the new preprod profile endpoint as default. ### Changelog **Changed** - use `axios` for the profile calls - set default host endpoint to preprod url **Removed** - `jsonp` package - no longer needed <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
…nvs (#4923) ### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state #4701 ### Description Add the profile host env var to various testing envs previously added the variable to only react testing envs deploy-canary: - react-experimental - react-rtl - web-components - web-components-rtl - web-components-experimental - web-components-react - services deploy-staging: - web-components
…g and unit tests (#4926) ### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state #4701 ### Description Update naming and unit tests from feedback: #4909 ### Changelog **Changed** - update `getUserStatus` action to `loadUserStatus` in accordance to naming strategy - create `Unauthenticated` const in ProfileAPI type - use `request` instead of `status` for the `setRequestUserStatusInProgress` and `setUserStatus` actions <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state carbon-design-system#4701 ### Description Change profile endpoint which no longer allows for jsonp to get around CORS errors. Set the new preprod profile endpoint as default. ### Changelog **Changed** - use `axios` for the profile calls - set default host endpoint to preprod url **Removed** - `jsonp` package - no longer needed <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
…nvs (carbon-design-system#4923) ### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state carbon-design-system#4701 ### Description Add the profile host env var to various testing envs previously added the variable to only react testing envs deploy-canary: - react-experimental - react-rtl - web-components - web-components-rtl - web-components-experimental - web-components-react - services deploy-staging: - web-components
…g and unit tests (carbon-design-system#4926) ### Related Ticket(s) Change profile endpoint on Carbon Masthead for signed in state carbon-design-system#4701 ### Description Update naming and unit tests from feedback: carbon-design-system#4909 ### Changelog **Changed** - update `getUserStatus` action to `loadUserStatus` in accordance to naming strategy - create `Unauthenticated` const in ProfileAPI type - use `request` instead of `status` for the `setRequestUserStatusInProgress` and `setUserStatus` actions <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
This work must be done by the end of Jan 2021
IDaaS is being replaced with new ISV. This change will impact the endpoint that is currently part of the Profile Icon on the masthead which displays if a user is signed out or signed in.
Describe the solution you'd like
Rick McCarty has provided the solution here:
With respect to the status API calls made by the masthead, these will need some changes for ISV.
Currently, if the current page is under www.ibm.com, the masthead makes a request to the following endpoint:
https://idaas.iam.ibm.com/v1/mgmt/idaas/user/status/
If the page is under another domain, for example myibm.ibm.com, etc, the call is a bit different - it adds a callback parameter for JSONP to avoid CORS issues:
https://idaas.iam.ibm.com/v1/mgmt/idaas/user/status/?callback=__jp1
With the change to ISV, the new endpoint will be:
https://login.ibm.com/v1/mgmt/idaas/user/status/
Also, ISV will no longer support the "callback=" parameter, meaning that JSONP can no longer be used to get around CORS issues. Instead, we will have to include a more comprehensive list of domains in our ISV configuration to handle CORS.
Original request is here: https://jsw.ibm.com/browse/IRFC-8
The text was updated successfully, but these errors were encountered: