Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.25 KB

WellKnownApi.md

File metadata and controls

76 lines (56 loc) · 2.25 KB

WellKnownApi

All URIs are relative to http://localhost

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

getServiceAccountIssuerOpenIDConfiguration

String getServiceAccountIssuerOpenIDConfiguration().execute();

get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'

Example

// Import classes:
import client.ApiClient;
import client.ApiException;
import client.Configuration;
import client.auth.*;
import client.models.*;
import client.apis.WellKnownApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    
    // Configure API key authorization: BearerToken
    ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
    BearerToken.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //BearerToken.setApiKeyPrefix("Token");

    WellKnownApi apiInstance = new WellKnownApi(defaultClient);
    try {
      String result = apiInstance.getServiceAccountIssuerOpenIDConfiguration()
            .execute();
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling WellKnownApi#getServiceAccountIssuerOpenIDConfiguration");
      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

String

Authorization

BearerToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
401 Unauthorized -