I imported a BDCM file from central administration which created the external content types. When I tried to open the external content type's operation, I was prompted for credentials. When I entered the credentials that I provided with the target application in secure store, I got login failed message.
I used the same credentials that I supplied after clicking on "set credentials" in secure store. See below: