We are making Java adapter, and want to protect by CustomAuthenticator and CustomLoginModule.
We started from sample project got from: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/authentication-security/custom-authenticator-login-module/custom-authenticator-login-module-hybrid-applications/
We then added simple Java Adapter.
Then, in the client code, we modified getSecretData() function in main.js so that it calls /adapters/JavaAdapter/users instead of original /adapters/DummyAdapter/getSecretData.
Finally, We added the @OAuthSecurity(scope="CustomAuthenticatorRealm") annotation to the adapter's hello() function.
But clicking "call protected adapter proc" button successfully returns the data from hello() without authentication.
What should we do so that authentication works for Java adapter calls?