How to override basic http authentication using a plugin?

Hi,

I am using .Net Drivers Client class to create a new instance and to connect to nuxeo. I want to do so that I can pass just the username and my login plugin handles the internal logic according to our external authentication. For that purpose I would like to override the basic http authentication ? Could some one give me some pointers on how to approach this?

I am overriding it here https://github.com/sherry-ummen/NuxeoLoginPlugin/blob/master/CompanyAuthenticator-core/src/main/resources/OSGI-INF/CompanyAuthenticator.xml , but does not seem to affect. I don't understand the reason ro as usual I am missing something.

Florent Guillaume Gabriel Barata could you guys help me?

0 votes

1 answers

708 views

ANSWER



So I fixed it by adding the URL Pattern to override the api calls and the automation calls. Check here https://github.com/sherry-ummen/NuxeoLoginPlugin/blob/master/CompanyAuthenticator-core/src/main/resources/OSGI-INF/CompanyAuthenticator.xml#L21

0 votes