cancel
Showing results for 
Search instead for 
Did you mean: 

ADF Indentity User Service

eliemichael
Champ in-the-making
Champ in-the-making

Hello,

Can someone please assist me by giving me an example of how to use the IdentityUserService in a custom component. I have tried it as shown in the pictures below but it keeps failing

imageuser-register-component

imageappModules providers array

this is the error I keep getting

imageerror message

Please help, I am new to Angular and ADF, so I feel like I am missing something. Please provide as much details as possible if there is something wrong with my code above. 

5 REPLIES 5

fcorti
Elite Collaborator
Elite Collaborator

Hi,

Did you have the chance to look at a working example?
There some around:
- The ACA (Alfresco Content Application). The source code is available here: https://github.com/Alfresco/alfresco-content-app

- A basic ADF application created using the ADF Yeoman Generator. A tutorial can be found here: https://www.alfresco.com/abn/adf/docs/tutorials/creating-the-app-using-yeoman/

I hope this will help you.

-F

karol
Champ in-the-making
Champ in-the-making

image

Hello,

Try this link https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/

You can find info too in: https://github.com/Alfresco/generator-alfresco-adf-app

Regards

 




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer



quotes512
Champ in-the-making
Champ in-the-making

 

Hi eliemichael,

Make sure IdentityUserService is not added manually in providers and your authentication module is properly configured. Also check Angular and ADF versions.

For a quick mental break while debugging, you can check griefquote dot com and look for "missing you grief quotes".

roberto_gamiz
Star Collaborator
Star Collaborator

Could you give me more context about your problem? What is your Alfresco stack (Alfresco, ADF, and KeyCloak versions)? Are you extending an existing Alfresco content application, one generated with Yeoman, or are you using ADF components in an application built from scratch?

In any case, it seems to me that some of the necessary components haven't been initialized correctly, for example, AlfrescoApiServices.

Regards




 Roberto Gámiz Sánchez

Alfresco Content Services Engineer