code: public void login(String redirectUri, String type, String locale, Boolean includeState) throws ApiException {
          loginWithHttpInfo(redirectUri, type, locale, includeState);
      }
docs: Login (HTTP session only)
  Starts the OAuth 2 flow for the Authorization Code grant type and returns a redirect to the Authentication service. For more information, see the [Authentication API](/reference/authentication/).
  @param redirectUri The URI the Authentication API uses to redirect the user after authentication. (required)
  @param type The application type requesting the login. (optional)
  @param locale The current locale of the app. (optional)
  @param includeState Flag denoting whether a state parameter should be generated and included in the redirect. (optional)
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body