Examples of BrowserAuthorityBridge


Examples of com.dietsodasoftware.yail.oauth2.authority.BrowserAuthorityBridge

        this.parse = parse;
    }

    @Override
    public void attemptAuthorization(OAuthAuthenticationHandler handler) throws IOException, OauthAuthenticationException {
        final BrowserAuthorityBridge browser = new BrowserAuthorityBridge(clientId, scopes);
        if(username != null && password != null){
            browser.usingBasicAuth(username, password);
        }
        browser.showBrowser();

        final String requestUuid = browser.getRequestUuid();
        final ParseTokenResourceService tokenService = new ParseTokenResourceService(parse);
        final ParseTokenStatePollingTask pollingTask = tokenService.createTokenPollingTask(requestUuid, maxAttempts, handler);

        final ScheduledFuture future = executorService.scheduleWithFixedDelay(pollingTask, initialDelaySeconds, delaySeconds, TimeUnit.SECONDS);
        pollingTask.setMyFuture(future);
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.