SBT ManagedBean property credentialStore is ignored with SmartCloudOAuth2Endpoint

42 views Asked by At

Is seems that the credentialStore property is not being picked up when using the SBT. We have this property:

 <managed-property>
    <property-name>credentialStore</property-name>
    <value>CredStoreCloudant</value>
    </managed-property>

There is no change when I change the value to any odd name, while this name is clearly defined in the managed-beans.xml, like this :

<managed-bean>
        <managed-bean-name>CredStoreCloudant</managed-bean-name>
        <managed-bean-class>com.eoffice.sbt.credentialstore.CloudantCredentialStore</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>

The managed-beans.xml is being used, when we change the property clientID , we do get the 401 error:

oauth_invalid_clientid

Which is expected behaviour. The OAuth dance is performed nicely, but our code does not execute. It appears to be using the MemoryStore.

0

There are 0 answers