Gabor Somogyi created KAFKA-7677:
------------------------------------

             Summary: Client login with already existing JVM subject
                 Key: KAFKA-7677
                 URL: https://issues.apache.org/jira/browse/KAFKA-7677
             Project: Kafka
          Issue Type: New Feature
            Reporter: Gabor Somogyi


If JVM is already logged in to KDC and has a Subject + TGT in it's security 
context it can be used by clients and not logging in again. Example code:

{code:java}
org.apache.hadoop.security.UserGroupInformation.getCurrentUser().doAs(
  new java.security.PrivilegedExceptionAction[Unit] { 
    override def run(): Unit = {
    val subject = 
javax.security.auth.Subject.getSubject(java.security.AccessController.getContext())
    val adminClient = AdminClient.create...
  }
)
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to