Authenticate without properties file

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

Authenticate without properties file

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
afaust
Master

Re: Authenticate without properties file

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
Member II

Re: Authenticate without properties file

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
Master

Re: Authenticate without properties file

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.