Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4378100

LoginContext doesn't reinit modules with new Subject if authentication fails

XMLWordPrintable

    • merlin
    • generic
    • generic, solaris_7

      LoginContext initializes LoginModules with a Subject only once.
      if the login method is called and authentication fails,
      it nulls out the Subject and instantiates a new one.

      but since the LoginModules are not reinitialized with the new
      Subject, they end up operating on the original Subject they were
      initialized with, to which the LoginContext no longer has
      a reference. thus, the updates will never be seen by the
      calling application.

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: