APISonar


com.duosecurity.client.Http.Http

> com > duosecurity > client > Http > Http
com APIs duosecurity APIs client APIs Http APIs Http APIs

Example 1
protected Http buildHttpPostAuthRequest() {
        return new Http(HttpMethod.POST.name(),
            duoProperties.getDuoApiHost(),
            String.format("/auth/v%s/auth", AUTH_API_VERSION));
    }
Example 2
protected Http buildHttpPostUserPreAuthRequest(final String username) {
        final Http usersRequest = new Http(HttpMethod.POST.name(),
                duoProperties.getDuoApiHost(),
                String.format("/auth/v%s/preauth", AUTH_API_VERSION));
        usersRequest.addParam("username", username);
        return usersRequest;
    }