Examples of Auth


Examples of io.fathom.cloud.server.auth.Auth

    private UserData user = null;

    protected UserData getUser() throws CloudException {
        if (this.user == null) {
            Auth auth = getAuth();
            User user = null;
            if (auth != null) {
                user = auth.getUser();
            }
            if (user == null) {
                throw new WebApplicationException(Status.UNAUTHORIZED);
            }
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    // }
    // return domain;
    // }

    protected Auth.Domain findDomainWithAdminRole() {
        Auth auth = findAuth();
        if (auth == null) {
            return null;
        }
        return auth.findDomainWithAdminRole();
    }
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

        doProjectGrant();
        return null;
    }

    private void doProjectGrant() throws CloudException {
        Auth auth = getAuth();

        Project project = auth.getProject();

        AuthenticatedUser authenticatedUser = ((AuthServiceImpl) authService).toAuthenticatedUser(auth);
        AuthenticatedProject authenticatedProject = identityService.authenticateToProject(authenticatedUser,
                project.getId());
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    @Inject
    IdentityService identityService;

    @Override
    protected Message run0() throws Exception {
        Auth auth = getUnscopedAuth();
        if (auth == null) {
            throw new IllegalStateException("Cannot authenticate as " + username);
        }
        log.info("Authenticated as: {}", username);
View Full Code Here

Examples of io.fathom.cloud.server.auth.Auth

    @Inject
    AuthService authService;

    @Override
    protected void run() throws Exception {
        Auth auth = authService.authenticate(null, username, password);
        if (auth == null) {
            throw new IllegalStateException("Cannot authenticate as " + username);
        }
        log.info("Authenticated as: {}", username);

        List<Long> projectIds = authService.resolveProjectName(auth, projectName);
        Long projectId;
        if (projectIds.isEmpty()) {
            log.info("Creating project: {}", projectName);
            projectId = authService.createProject(auth, projectName);
        } else {
            throw new IllegalArgumentException("Project already exists");
        }

        auth = authService.authenticate(projectId, username, password);
        if (auth == null) {
            throw new IllegalStateException("Error authenticating to project");
        }
        log.info("Authenticated to project");

        Project project = auth.getProject();
        println("Created project: %s", project.getId());
    }
View Full Code Here

Examples of it.freedomotic.security.Auth

        list.setModel(model);
        tabControls.validate();
    }

    private void enableControls() {
        Auth auth = api.getAuth();
        txtDescription.setEnabled(auth.isPermitted("objects:update"));
        txtName.setEnabled(auth.isPermitted("objects:update"));
        txtProtocol.setEnabled(!btnVirtual.isSelected() && auth.isPermitted("objects:update"));
        txtAddress.setEnabled(!btnVirtual.isSelected() && auth.isPermitted("objects:update"));
        btnVirtual.setEnabled(auth.isPermitted("objects:update"));
        btnChangeImage.setEnabled(auth.isPermitted("objects:update"));
        spnRotation.setEnabled(auth.isPermitted("objects:update"));
        spnScaleHeight.setEnabled(auth.isPermitted("objects:update"));
        spnScaleWidth.setEnabled(auth.isPermitted("objects:update"));
        spnX.setEnabled(auth.isPermitted("objects:update"));
        spnY.setEnabled(auth.isPermitted("objects:update"));
        environmentComboBox.setEditable(auth.isPermitted("objects:update"));
        btnDelete.setEnabled(auth.isPermitted("objects:delete"));
    }
View Full Code Here

Examples of l2p.gameserver.loginservercon.gspackets.Auth

      }
    }
    synchronized(sendPacketQueue)
    {
      crypt = data == null ? ConnectionCryptDummy.instance : new NewCrypt(data);
      sendPacketQueue.addFirst(new Auth());
      sendPacketQueue.addFirst(new BlowFishKey(data, this));
    }
    if(Config.DEBUG_GS_LS)
    {
      log.info("GS Debug: Crypt initialized, packets added to sendQueue");
View Full Code Here

Examples of net.caece.pri.hibernate.Auth

        refreshObjEntities();
    }

    public void add() {
        Auth obj = (Auth) viewToObj(null);
        AuthDao dao = new AuthDao();
        add(dao, obj);
    }
View Full Code Here

Examples of net.caece.pri.hibernate.Auth

        AuthDao dao = new AuthDao();
        add(dao, obj);
    }

    public void delete() {
        Auth obj = (Auth) objListbox.getSelectedItem().getValue();
        AuthDao dao = new AuthDao();
        delete(dao, obj);

        // empty all fields
        Auth emptyObj = new Auth();
        objToView(emptyObj);
    }
View Full Code Here

Examples of net.caece.pri.hibernate.Auth

        Auth emptyObj = new Auth();
        objToView(emptyObj);
    }

    public void objToView(Object obj) {
        Auth var = (Auth) obj;

        Textbox authNameTB = (Textbox) getFellow("authName");
        Textbox authDescTB = (Textbox) getFellow("authDescription");
        Radiogroup editable = (Radiogroup) getFellow("editable");

        authNameTB.setText(var.getAuthName());
        authDescTB.setText(var.getAuthDescription());

        Iterator it = editable.getItems().iterator();
        while (it.hasNext()) {
            Radio radio = (Radio) it.next();
            if (radio.getValue().equals(var.getEditable())) {
                radio.setChecked(true);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.