Alfresco Angular components ( Documentation -> https://alfresco.github.io/adf-component-catalog )
private setFormFieldValueOption(option: FormFieldOption ) {
if (this.optionType === 'rest' && !!this.restUrl) {
const restEntry = {};
const restIdProperty = this.restIdProperty || 'id';
const restLabelProperty = this.restLabelProperty || 'name';
restEntry[restIdProperty] = option.id;
restEntry[restLabelProperty] = option.name;
this.form.values[this.id] = restEntry;
} else {
this.form.values[this.id] = option;
}
}
Regarding the version compatibility
https://www.alfresco.com/abn/adf/docs/compatibility/
What is ADF version compatibility when it comes to Process Services v2 and Content Services v7
I see there is a PR in progress
Alfresco/alfresco-ng2-components#7533
any tentative date for Angular v13 upgrade?
Hi, Is it possible to inject "AdminGroupsApi" to my component? I am trying to use adminGroupsApi.createNewGroup
to add new group to APS.
I have my constructor asconstructor(private adminGroupsApi: AdminGroupsApi,
private bpmUserService: BpmUserService)
but when I load the component in browser, I see below error in console..
ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[AdminGroupsApi -> AdminGroupsApi -> AdminGroupsApi]:
NullInjectorError: No provider for AdminGroupsApi!
NullInjectorError: R3InjectorError(AppModule)[AdminGroupsApi -> AdminGroupsApi -> AdminGroupsApi]:
NullInjectorError: No provider for AdminGroupsApi!
anyone have idea regarding this? https://hub.alfresco.com/t5/application-development/alfresco-content-app-configuration/td-p/312430
@eromano any idea?
Hi, I am working on configuring ADF for OAUTH. I have below configuration added to my app.config.json file..
"oauth2": {
"host": "https://ping-federate.company.com",
"authPath": "/as/token.oauth2",
"scope": "openid",
"clientId": "app-oauth",
"secret": "",
"implicitFlow": true,
"silentLogin": true,
"redirectUri": "/",
"redirectUriLogout": "/logout"
}
When I go to my ADF app url http://localhost:4200, it re-directs to below url..
https://ping-federate.company.com/protocol/openid-connect/auth?client_id=app-oauth&redirect_uri=http://localhost:4200/&scope=openid&response_type=id_token token&nonce=aBBC9lM0pY4GlU4AJK5sFl52ykU7hwCHpLjjRwWQ
But team who manages the Ping Federate mentioned ADF should re-direct to below url..
https://ping-federate.company.com/as/authorization.oauth2?client_id=app-oauth&redirect_uri=http://localhost:4200/&scope=openid&response_type=id_token token&nonce=aBBC9lM0pY4GlU4AJK5sFl52ykU7hwCHpLjjRwWQ
Is it possible to configure ADF to generate re-direct URL as above?
Please let me know. Thanks.
I was able to resolve this using authorizationUrl
prop. Now it redirects me to Auth login page and after successful login it redirects me back to ADF url...
http://localhost:4200/#access_token=<token>&token_type=Bearer&expires_in=7199
but I am seeing below error in browser console.
activiti-app/app/rest/process-instances/<processId>/model-json
. I have BASIC auth configured and everything works except this API. Please share if there is any fix that can help prevent this issue. User also gets logged out from app.
Our ACS 7.2 is working on one server and our ADF application is deployed on another server and I pointed the same ACS server in configurations
app.config.json .
"ecmHost": "http://xxxxxxx:8080",
proxy.conf.js
module.exports = {
"/alfresco": {
"target": "http://xxxxxxx.com:8080",
"secure": false,
"changeOrigin": true
}
};
While trying to login using ADF application it's giving CORS error and not allowing to login.
I followed this documentation link to enable cors https://docs.alfresco.com/content-services/community/config/repository/#cors-configuration
cors.enabled=true
"
Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
"
Please help here to solve the issue.
@DenysVuika thanks, "ecmHost": "{protocol}//{hostname}{:port}",
module.exports = {
"/alfresco": {
"target": "http://xxxxxxxxxxx:8080",
"secure": false,
"changeOrigin": false
}
};
it worked.
but when I create the build of this ADF application, it's giving error
when I try to login.
ADF app with a multi environment setting on k8s
Hi, is there a hook to customize app.config.json file before it's loaded?
I'm trying to customize the identity provider URL based on a Helm chart value on k8s.
I'm able to change the oauth2 value on the AlfrescoApiConfig but those changes does NOT take effect, it seems that I need to do it "before".
Only the hardcoded values from app.config.json are taking into account.
Any suggestions on how to customize this file to run it on a k8s multi-env?
Thanks in advance!
CC: @DenysVuika, @eromano
<adf-viewer>
with <adf-viewer-extension>
with supportedExtensions as pdf,mp4
. But still when I open the content preview it loads the default viewer and not the enterprise-viewer. Is enterprise-viewer supported for ADW?Hi, I am trying to invoke custom ACS API. For that I am usingthis.alfrescoApiService.getInstance()
.contentClient
.callCustomApi
my ADF app is running on http://project-app.comp.com and ACS is running on http://project.comp.com
Above code invokes API on http://project-app.comp.com/alfresco instead of http://project.comp.com/alfresco.
Which service should I use to invoke custom ACS api so it points to correct hostname?
in file-view.component.html
I am able to preview document but
but not sure why this is Comments/Properties/Versions are not displaying
<ng-container *ngIf="nodeId">
<ng-template let-node="node" #sidebarTemplate>
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.COMMENTS' | translate">
<adf-comments [nodeId]="nodeId"></adf-comments>
</adf-info-drawer-tab>
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.PROPERTIES' | translate">
<adf-content-metadata-card [node]="node"></adf-content-metadata-card>
</adf-info-drawer-tab>
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.VERSIONS' | translate">
<mat-card>
<mat-card-content>
<adf-version-manager
[node]="node"
(uploadError)="onUploadError($event)"
>
</adf-version-manager>
</mat-card-content>
</mat-card>
</adf-info-drawer-tab>
</adf-info-drawer>
</ng-template>
<adf-viewer
[nodeId]="nodeId" [overlayMode]="false" [allowGoBack]="true"
(showViewerChange)="onViewerVisibilityChanged()"
>
<adf-viewer-toolbar-actions>
<button mat-icon-button>
<mat-icon>alarm</mat-icon>
</button>
<button mat-icon-button>
<mat-icon>backup</mat-icon>
</button>
<button mat-icon-button>
<mat-icon>bug_report</mat-icon>
</button>
</adf-viewer-toolbar-actions>
<!--
<adf-viewer-extension [supportedExtensions]="['json']">
<ng-template let-urlFileContent="urlFileContent" let-extension="extension">
<h1>JSON VIEWER</h1>
</ng-template>
</adf-viewer-extension>
-->
<!--
<adf-viewer-extension [supportedExtensions]="['png']">
<ng-template>
<h1>PNG Viewer</h1>
</ng-template>
</adf-viewer-extension>
-->
<!--
<adf-viewer-extension [supportedExtensions]="['pdf']">
<ng-template>
<h1>PDF Viewer</h1>
</ng-template>
</adf-viewer-extension>
-->
<!--
<extension-viewer [supportedExtensions]="['obj','3DS']" #extension>
<ng-template let-urlFileContent="urlFileContent" let-extension="extension" >
<threed-viewer [urlFile]="urlFileContent" [extension]="extension" ></threed-viewer>
</ng-template>
</extension-viewer>
-->
</adf-viewer>
</ng-container>