ADF identity user info compenent doesn't work in ADF 6.1.1

cancel
Showing results for 
Search instead for 
Did you mean: 
KarekMedAM
Active Member II

ADF identity user info compenent doesn't work in ADF 6.1.1

Hey,

 

I'm using ADF 6.1.1 with APS 2.4. When I use the component  <adf-identity-user-info ></adf-identity-user-info> it shows nothing. I also tried to call the service directly, but it gets all values as undefined, although I successfully log in, and I can see my list of apps.

What could be the problem and how I can fix it?

Thank you in advance.

9 Replies
denys
Partner

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

According to the docs this component requires single-sign-on configuration with the Identity Service. If you are not using AIS, you might want to use dedicated "adf-content-user-info" or "adf-process-user-info"

KarekMedAM
Active Member II

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

@denys  firstly thanks for your support.

I want to log in to both APS and ACS in the same interface (this worked just fine when I used ADF 4) how can I achieve that?

I tried to log in into only APS : this is my proxy: 

 
module.exports = {
"/activiti-app": { target: "https://172.16.68.148:8443", secure: false, changeOrigin: true, }, };


 and this is the app config
 
  "$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
  "ecmHost": "{protocol}//{hostname}{:port}",
  "bpmHost": "{protocol}//{hostname}{:port}",
  "providers": "BPM",
  "authType": "BASI
 And in HTML I used the 
<adf-process-user-info></adf-process-user-info>
 
But still doesn't work!
 
Thanks in advance
denys
Partner

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

you need setting providers to "ALL" in order to login at both systems at once. both systems should have the same account created for that purpose. And you have typo in "BASIC" auth parameter

KarekMedAM
Active Member II

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

@denys  I canged my proxy and app config like the below, but still doesn't work:

 

module.exports = {
  "/alfresco": {
    target: "http://172.16.68.149:8080",
    secure: false,
    changeOrigin: true,
  },
  "/activiti-app": {
    target: "https://172.16.68.148:8443",
    secure: false,
    changeOrigin: true,
  },
};
"$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
  "ecmHost": "{protocol}//{hostname}{:port}",
  "bpmHost": "{protocol}//{hostname}{:port}",
  "providers": "ALL",
  "authType": "BASIC",
  "identityHost": "{protocol}//{hostname}{:port}/auth/realms/alfresco",

My account is set properly in both APS and ACS and it does work with ADF 4

 

Thanks

Regards

denys
Partner

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

You can check how ACA is using that https://github.com/Alfresco/alfresco-content-app/blob/develop/app/proxy.conf.js.

It's hard troubleshooting the auth issues without any techincal details and error details from the browser tab, or details on how you configured everything.

denys
Partner

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

but as I've mentioned above, identity-user-info needs SSO, not basic auth for sure. we have Alfresco Content Application which is open source replacement for Share, and where you can see the code and how things work there.

KarekMedAM
Active Member II

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

I tried the same config in ACA but it doesn't work.

I'm doing the same config I did with ADF 4 I haven't change nothing and yet it doesn't work.

@denys What kind of details I could provide for better help!

ifsebyy
Member II

i am facing same issue could you help me on this

whenever I am trying to use in my component 

```

<adf-content-user-info>

   
</adf-content-user-info>
```

display nothing. As I am new to this please give some solution. 

thank in advance
angela24
Member II

Re: ADF identity user info compenent doesn't work in ADF 6.1.1

Experiencing issues with ADF Identity User Info component in version 6.1.1? Reach out to the ADF community or support for assistance. Collaborative solutions often emerge, ensuring a smoother development experience.