Apologies if this is a dumb question, but when you configured the GitHub
identity provider in Keycloak, you pointed it to your local GitHub rather
than the public one? With the system properties you listed above, Apicurio
will definitely be trying to use your local GitHub when e.g. publishing an
API. At what point are you still having trouble? Is it when you try to
create a linked account or is it when you try to publish an API?
-Eric
On Sat, Jun 22, 2019 at 11:53 AM Gupta, Madhu <Madhu.Gupta(a)uscellular.com>
wrote:
Hi Eric,
Thanks for responding to my request. I configured the Kecloak as per the
instructions provided in the URL you shared and I configured the system
properties as below in standalone-apicurio.xml. But when I start the
Apicurio still it is point to public GB.
<system-properties>
<property name="apicurio.kc.auth.rootUrl" value="
http://localhost:8080/auth"/>
<property name="apicurio.kc.auth.realm" value="apicurio"/>
<property name="apicurio.hub.storage.jdbc.type"
value="h2"/>
<property name="apicurio.hub.storage.jdbc.init"
value="true"/>
<property name="apicurio.hub.github.url" value="
https://github.uscc.com"/>
<property name="apicurio.hub.github.api" value="
https://api.github.uscc.com"/>
</system-properties>
Do I need to change any other settings or clearup any cache to point local
GH installation. Once again thanks in advance for your support.
Thanks
Madhu
*From:* Eric Wittmann [mailto:eric.wittmann@redhat.com]
*Sent:* Friday, June 21, 2019 10:51 AM
*To:* Gupta, Madhu
*Cc:* apicurio(a)lists.jboss.org
*Subject:* Re: [Apicurio] How to configure to use internally hosted
github repository
We do not have access to a local GitHub installation in order to test
this, which is why we do not have documentation for it. However, you
should be able to use two existing articles in the official Apicurio
documentation to help.
Here is the article about how to configure a local GitLab instance:
https://apicurio-studio.readme.io/docs/using-a-local-installation-of-gitlab
You'll obviously want to extrapolate from the information in that article
to GitHub instead of GitLab. To help with that, there is some good
information about how to configure the Keycloak side of things here:
https://apicurio-studio.readme.io/docs/setting-up-keycloak-for-use-with-a...
The Apicurio configuration is pretty easy, it's just setting some system
properties:
apicurio.hub.github.url=https://github.com
apicurio.hub.github.api=https://api.github.com
The values above are defaults - obviously used for integrating with the
public instance of GH. You'll want to set BOTH properties to appropriate
values for your local instance.
The trickier part is configuring your local Keycloak. This requires some
configuration in Keycloak **AND** some configuration in your local GitHub
instance. The configuration needed is documented in the second link I
included above.
Let me know if you run into any issues.
-Eric
On Fri, Jun 21, 2019 at 11:42 AM Gupta, Madhu <Madhu.Gupta(a)uscellular.com>
wrote:
Hi
I am currently using Apicurio standalone installation. I would like to use
Apicurio to integrate with internally hosted github repository. Please
advise how to configure the same.
Thanks,
Madhu Gupta
_______________________________________________
Apicurio mailing list
Apicurio(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/apicurio