使用adal4j注销

时间:2015-01-23 12:59:11

标签: azure-active-directory adal

我应该如何使用adal4j实现注销?目前我没有在这个库中看到任何方法来执行此操作。这是我的例子。

        AuthenticationContext context = new AuthenticationContext("https://login.windows.net/" + "test.onmicrosoft.com" + "/", true, service);

        try {
            final Future<AuthenticationResult> resultFuture = context.acquireTokenByAuthorizationCode(
                    code, new URI(redirectUri), new ClientCredential(clientId, clientSecret), "https://graph.windows.net/", null);

            result = resultFuture.get();
        } catch (InterruptedException | ExecutionException e) {

        } catch (URISyntaxException e) {

        }

0 个答案:

没有答案