Package org.springframework.social.github.api

Examples of org.springframework.social.github.api.GitHub


        return "redirect:/admin/team/" + username;
    }

    @RequestMapping(value = "/admin/team/github_import", method = POST)
    public String importTeamMembersFromGithub(Principal principal) {
        GitHub gitHub = getGitHub(principal);
        teamImporter.importTeamMembers(gitHub);
        return "redirect:/admin/team";
    }
View Full Code Here


            this.signInService = signInService;
        }

        @Override
        public String signIn(String githubId, Connection<?> connection, NativeWebRequest request) {
            GitHub gitHub = (GitHub) connection.getApi();
            String githubUsername = connection.getDisplayName();

            try {
                if (!signInService.isSpringMember(githubUsername, gitHub)) {
                    throw new BadCredentialsException("User not member of required org");
View Full Code Here

TOP

Related Classes of org.springframework.social.github.api.GitHub

Copyright © 2018 www.massapicom. 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.