To use the generic security login module features, you must configure the login module and the callback handler for both the token generator and the token consumer.
Learn about generic security token login modules.