cancel
Showing results for 
Search instead for 
Did you mean: 

Authenticate without properties file

om_bijawat
Champ in-the-making
Champ in-the-making
We need to use Alfresco client sdk to authenticate users.
How to implement authentication without properties files?
Whatever the document links I have seen, in all of these they have shown to use the starter dependencies but after using that we need to provide the user name and password in properties file, which is not our requirement.
Let us know if anyone has any information for the same.
Thanks
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator

You would have to write a custom configuration to create a Feign request interceptor that handles the authentication on requests. Alfresco's default is handled via the BasicAuthRequestInterceptor configured based on the properties.

om_bijawat
Champ in-the-making
Champ in-the-making

Thanks @afaust 

Can we use this

https://github.com/Alfresco/alfresco-java-sdk/tree/develop/alfresco-java-rest-api/alfresco-java-rest...

the only issue is like the class AuthenticationApi is not available after adding the dependency which has been mentioned in the above link.

So don't know how to resolve this dependency.

afaust
Legendary Innovator
Legendary Innovator

You could use it - if Alfresco did not, for some reason, "forget" to generate the Java classes for that API based on the Swagger configuration. You should file an issue with that project for this particular bug.

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.