03-05-2018 06:26 AM
I don't know if this is possible with guest user or if I can avoid that ADF go through the login window, although use to be a default user in Angular code, I've been trying several things, and I don`t get it and I am not sure if is possible
Can you help me please?
thanks
03-08-2018 03:17 AM
yes, I able
03-08-2018 05:34 AM
If you want to hide the login I think you need to rewrite it in a way that transforms this component in a service
alfresco-ng2-components/login.component.ts at master · Alfresco/alfresco-ng2-components · GitHub
and you need to set the provider to "OAUTH" and add in your app.config.json that information:
app.config.json
{ "oauth2" : { "host": "http://myhost.com", "authPath": "/my-custom-auth/token", "clientId": "my-client-id", "secret": "" } }
If I were you I will start before trying to use the login component in OAUTH mode like explained here:
alfresco-ng2-components/login.component.md at master · Alfresco/alfresco-ng2-components · GitHub
I suggest also to move to ADF 2.2.0 that contains some fixes for the OAUTH.
Explore our Alfresco products with the links below. Use labels to filter content by product module.