Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set base_path #1

Open
TPausL opened this issue Dec 18, 2022 · 4 comments
Open

Can't set base_path #1

TPausL opened this issue Dec 18, 2022 · 4 comments

Comments

@TPausL
Copy link

TPausL commented Dec 18, 2022

When setting base_path in OryClient.configure nothing changes. Requests are still send to the playground

@EvanDaley
Copy link

Same issue here. I was able to point to a specific project by overriding the configuration server_variables, but that only helps if you're pointing at their https://{project}.projects.oryapis.com URL.

      ory_configuration = OryClient::Configuration.new
      ory_configuration.server_variables = {
        project: '{project id}'
      }

      ory_api_client = OryClient::ApiClient.new(ory_configuration)

I haven't been able to find a way to point it at a localhost or self-hosted URL.

@aeneasr can you provide us some direction on this?

@aeneasr
Copy link
Member

aeneasr commented Jan 5, 2023

Unfortunately not because I don't know ruby :(

@aeneasr
Copy link
Member

aeneasr commented Jan 5, 2023

For self hosting it might make more sense to use the hydra|kratos|keto-client-ruby directly

@germs12
Copy link

germs12 commented Feb 13, 2024

I believe this is due to using an old outdated version of the OpenAPI ruby generator. The version listed in the ruby-client is 6.0.1 (https://github.com/ory/client-ruby/blob/master/.openapi-generator/VERSION) but the OpenAPI generator version has since been updated to 7.3.0.

The issue with base_url was addressed in this PR OpenAPITools/openapi-generator#16144 and released in v6.6.0 (release notes: https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0)

It would be awesome if you could release a new version of the library that uses an updated version of the OpenAPITools generator. Thanks!

cc: @aeneasr @EvanDaley @TPausL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants