mirror of https://github.com/apache/jclouds.git
Added @Named annotation to oauth async api
This commit is contained in:
parent
7711ca0d60
commit
395d8f97b2
|
@ -27,6 +27,7 @@ import org.jclouds.rest.AuthorizationException;
|
|||
import org.jclouds.rest.annotations.BinderParam;
|
||||
import org.jclouds.rest.annotations.Endpoint;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
@ -46,6 +47,7 @@ public interface OAuthAsyncApi {
|
|||
/**
|
||||
* @see OAuthApi#authenticate(TokenRequest)
|
||||
*/
|
||||
@Named("authenticate")
|
||||
@POST
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
public ListenableFuture<Token> authenticate(@BinderParam(OAuthTokenBinder.class) TokenRequest tokenRequest)
|
||||
|
|
Loading…
Reference in New Issue