You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/11/25 04:22:51 UTC

[zeppelin] branch branch-0.9 updated: [ZEPPELIN-5142]. Add login for ZSession

This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new e82103a  [ZEPPELIN-5142]. Add login for ZSession
e82103a is described below

commit e82103a214762567d003c101e5054c78e1220317
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Tue Nov 24 23:10:30 2020 +0800

    [ZEPPELIN-5142]. Add login for ZSession
    
    ### What is this PR for?
    
    This PR add login capability to ZSession, so that we can use ZSession to access secure zeppelin instance.
    
    ### What type of PR is it?
    [Improvement ]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5142
    
    ### How should this be tested?
    * CI pass
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Jeff Zhang <zj...@apache.org>
    
    Closes #3981 from zjffdu/ZEPPELIN-5142 and squashes the following commits:
    
    2eb09ccf2 [Jeff Zhang] [ZEPPELIN-5142]. Add login for ZSession
    
    (cherry picked from commit c7cf20385b2660b413155186e970df1553e99802)
    Signed-off-by: Jeff Zhang <zj...@apache.org>
---
 .../src/main/java/org/apache/zeppelin/client/ZSession.java            | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java b/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
index 01600f4..f3aac50 100644
--- a/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
+++ b/zeppelin-client/src/main/java/org/apache/zeppelin/client/ZSession.java
@@ -72,6 +72,10 @@ public class ZSession {
     this.sessionInfo = new SessionInfo(sessionId);
   }
 
+  public void login(String userName, String password) throws Exception {
+    this.zeppelinClient.login(userName, password);
+  }
+
   /**
    * Start this ZSession, underneath it would create a note for this ZSession and
    * start a dedicated interpreter group.