Open TPausL opened 1 year ago
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?
Unfortunately not because I don't know ruby :(
For self hosting it might make more sense to use the hydra|kratos|keto-client-ruby directly
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 https://github.com/OpenAPITools/openapi-generator/pull/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
When setting base_path in
OryClient.configure
nothing changes. Requests are still send to the playground