Example usage for org.springframework.security.oauth2.client.token.grant.implicit ImplicitResourceDetails getRedirectUri

List of usage examples for org.springframework.security.oauth2.client.token.grant.implicit ImplicitResourceDetails getRedirectUri

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.client.token.grant.implicit ImplicitResourceDetails getRedirectUri.

Prototype

public String getRedirectUri(AccessTokenRequest request) 

Source Link

Document

Extract a redirect uri from the resource and/or the current request.

Usage

From source file:org.cloudfoundry.identity.uaa.integration.VmcAuthenticationTests.java

@Before
public void init() {
    ImplicitResourceDetails resource = testAccounts.getDefaultImplicitResource();
    params = new LinkedMultiValueMap<String, String>();
    params.set("client_id", resource.getClientId());
    params.set("redirect_uri", resource.getRedirectUri(new DefaultAccessTokenRequest()));
    params.set("response_type", "token");
    headers = new HttpHeaders();
    headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
}