NoSecLoginModule class

This authenticator implementation always authenticates the user.

Syntax

public class NoSecLoginModule

Remarks

This provider does not enforce any security at all. So, it is not recommended for use in production environment.

It supports the two configuration options:

  • useUsernameAsIdentity - If this option is set to true, the username supplied in the callback is set as the name of the principal added to the subject.
  • identity - The value of this configuration option is used as the identity of the user if one of two conditions is met:
    1. No credentials were supplied
    2. The useUsernameAsIdentity option is set to false.
    The default value, if none is specified is "nosec_identity".