Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 2.05 KB

AuthRedirectApi.md

File metadata and controls

73 lines (53 loc) · 2.05 KB

AuthRedirectApi

All URIs are relative to http://localhost

Method HTTP request Description
authRedirectIndex GET /.well-known/openid-configuration

authRedirectIndex

authRedirectIndex()

Example

// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.AuthRedirectApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    
    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    // Configure OAuth2 access token for authorization: oauth2
    OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
    oauth2.setAccessToken("YOUR ACCESS TOKEN");

    AuthRedirectApi apiInstance = new AuthRedirectApi(defaultClient);
    try {
      apiInstance.authRedirectIndex();
    } catch (ApiException e) {
      System.err.println("Exception when calling AuthRedirectApi#authRedirectIndex");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Success -