/** * Your implementation will call this method to add this identifier to the current user * of an already authenticated session. * * <p> * This method will record the identifier in {@link FederatedLoginServiceUserProperty} so that * in the future the user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u==null) throw new IllegalStateException("Current request is unauthenticated"); addTo(u); }
/** * Creates an account and associates that with the given identity. Used in conjunction * with {@link #commenceSignup}. */ @RequirePOST public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req,rsp,"signupWithFederatedIdentity.jelly"); if (u!=null) ((FederatedIdentity)req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); return u; }
/** * Your implementation will call this method to add this identifier to the current user * of an already authenticated session. * * <p> * This method will record the identifier in {@link FederatedLoginServiceUserProperty} so that * in the future the user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u==null) throw new IllegalStateException("Current request is unauthenticated"); addTo(u); }
/** * Your implementation will call this method to add this identifier to * the current user of an already authenticated session. * * <p> This method will record the identifier in * {@link FederatedLoginServiceUserProperty} so that in the future the * user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u == null) { throw new IllegalStateException("Current request is unauthenticated"); } addTo(u); }
/** * Your implementation will call this method to add this identifier to the current user * of an already authenticated session. * * <p> * This method will record the identifier in {@link FederatedLoginServiceUserProperty} so that * in the future the user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u==null) throw new IllegalStateException("Current request is unauthenticated"); addTo(u); }
/** * Your implementation will call this method to add this identifier to the current user * of an already authenticated session. * * <p> * This method will record the identifier in {@link FederatedLoginServiceUserProperty} so that * in the future the user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u==null) throw new IllegalStateException("Current request is unauthenticated"); addTo(u); }
/** * Your implementation will call this method to add this identifier to the current user * of an already authenticated session. * * <p> * This method will record the identifier in {@link FederatedLoginServiceUserProperty} so that * in the future the user can login to Hudson with the identifier. */ public void addToCurrentUser() throws IOException { User u = User.current(); if (u==null) throw new IllegalStateException("Current request is unauthenticated"); addTo(u); }
/** * Creates an account and associates that with the given identity. Used in conjunction * with {@link #commenceSignup(FederatedIdentity)}. */ public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req,rsp,"signupWithFederatedIdentity.jelly"); if (u!=null) ((FederatedIdentity)req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); return u; }
/** * Creates an account and associates that with the given identity. Used in conjunction * with {@link #commenceSignup(FederatedIdentity)}. */ public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req,rsp,"signupWithFederatedIdentity.jelly"); if (u!=null) ((FederatedIdentity)req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); return u; }
/** * Creates an account and associates that with the given identity. Used in * conjunction with {@link #commenceSignup(FederatedIdentity)}. */ public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req, rsp, "signupWithFederatedIdentity.jelly"); if (u != null) { ((FederatedIdentity) req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); } return u; } private static final String FEDERATED_IDENTITY_SESSION_KEY = HudsonPrivateSecurityRealm.class.getName() + ".federatedIdentity";
/** * Creates an account and associates that with the given identity. Used in conjunction * with {@link #commenceSignup(FederatedIdentity)}. */ public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req,rsp,"signupWithFederatedIdentity.jelly"); if (u!=null) ((FederatedIdentity)req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); return u; }
/** * Creates an account and associates that with the given identity. Used in conjunction * with {@link #commenceSignup}. */ @RequirePOST public User doCreateAccountWithFederatedIdentity(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { User u = _doCreateAccount(req,rsp,"signupWithFederatedIdentity.jelly"); if (u!=null) ((FederatedIdentity)req.getSession().getAttribute(FEDERATED_IDENTITY_SESSION_KEY)).addTo(u); return u; }