All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.duosecurity.service.DuoService Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.duosecurity.service;

import com.duosecurity.model.HealthCheckResponse;
import com.duosecurity.model.TokenResponse;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;

interface DuoService {

  @FormUrlEncoded
  @POST("/oauth/v1/health_check")
  Call duoHealthCheck(@Field("client_id") String clientId,
                                           @Field("client_assertion") String clientAuthorization);

  @FormUrlEncoded
  @POST("/oauth/v1/token")
  Call exchangeAuthorizationCodeFor2FAResult(@Header("user-agent") String userAgent,
                                    @Field("grant_type") String grantType,
                                    @Field("code") String duoCode,
                                    @Field("redirect_uri") String redirectUri,
                                    @Field("client_assertion_type") String clientAssertionType,
                                    @Field("client_assertion") String clientAssertion);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy