A quick profile widget that adds support to show and enable users to update their profile image and their social links with all the data coming from the OCM User API Services.
- View user profile imge and social links
- Enable user to manage their social links
- Enable user to change their avatar
As you can have unlimited user license on OCM - if a user is defined as a OCM user in IDCS - they will appear within this app providing a basic sample of social capabilities that OCM can provide OOTB with no custom middleware.
gzip: 16.32 KiB
https://bitmapbytes.com/hidden-presence-service-with-oracle-content-management/
Authentication currently uses OAuth2 against IDCS you will need to setup an IDCS application first - Please use this guide https://docs.oracle.com/en/cloud/paas/content-cloud/solutions/integrate-oracle-content-management-using-oauth.html#GUID-49F31EE7-D7C0-4EE4-A9E8-B610A7E816B1
If you are runnng localhost you will need to disable CORS I use the following flag with chrome and create a custom user dir "ChromeFiles" without this --disable-web-security will not work.
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-running-insecure-content --disable-web-security --user-data-dir=C:\ChromeFiles
If you have this running on a domain you can update your CORS settings on OCM
System >> Security
And add the front and backchannel with your domain.
Custom Configurations for the build you will need to update.
{
"contentServer": "https://<OCMInstance>.cec.ocp.oraclecloud.com"
}
{
"idcsUrl": "https://<IDCSInstance>.identity.oraclecloud.com",
"clientId": "<IDCS_APP_CLIENTID>",
"clientSecret": "<IDCS_APP_SECRETKEY>",
"oauthScopeUrl": "<IDCS_APP_SCOPE>"
}
Once you have the above configured you can run the following command and test to confirm the widget works.
npm run dev
Once tested run the build script this will build the webcomponents into the ./dist folder
npm run build
In the dist folder insert script into the html head tag or import and then reference the custom element.
Props info coming soon..
- In the component folder download the zipped package.
- in ./dist/ rename ocm-profile-widget.umd.cjs to ocm-profile-widget.umd.js
- In the Zip file replace with your build .js files
BB-Profile-Widget.zip\BB-Profile-Widget\assets\build\ocm-profile-widget.js
BB-Profile-Widget.zip\BB-Profile-Widget\assets\build\ocm-profile-widget.umd.js
- Upload to OCM Components and assign members.
- In sites drag and drop the component into a page.
- Template (Complete)
- Inital Api Services Call Setup (Complete)
- App UI & Headless integration
- OCM Sites Component Sample
Yup... you want - just raise an issue and mark it as an enhancement and I'll add it to the backlog :)