hi, I need to know, if is possible remove or hide login component of ADF

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

Re: hi, I need to know, if is possible remove or hide login component of ADF

yes, I able

eugenio_romano
Alfresco Employee

Re: hi, I need to know, if is possible remove or hide login component of ADF

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.