From Madhu.Gupta at uscellular.com Fri Jun 21 11:17:57 2019 From: Madhu.Gupta at uscellular.com (Gupta, Madhu) Date: Fri, 21 Jun 2019 15:17:57 +0000 Subject: [Apicurio] How to configure to use internally hosted github repository Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/apicurio/attachments/20190621/c49f4391/attachment.html From eric.wittmann at redhat.com Fri Jun 21 11:51:18 2019 From: eric.wittmann at redhat.com (Eric Wittmann) Date: Fri, 21 Jun 2019 11:51:18 -0400 Subject: [Apicurio] How to configure to use internally hosted github repository In-Reply-To: References: Message-ID: 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-apicurio#section-71-enable-github-account-linking 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 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 at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/apicurio > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/apicurio/attachments/20190621/5f637163/attachment.html From Madhu.Gupta at uscellular.com Sat Jun 22 11:53:47 2019 From: Madhu.Gupta at uscellular.com (Gupta, Madhu) Date: Sat, 22 Jun 2019 15:53:47 +0000 Subject: [Apicurio] How to configure to use internally hosted github repository In-Reply-To: References: Message-ID: 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. 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 at redhat.com] Sent: Friday, June 21, 2019 10:51 AM To: Gupta, Madhu Cc: apicurio at 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-apicurio#section-71-enable-github-account-linking 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 > 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 at lists.jboss.org https://lists.jboss.org/mailman/listinfo/apicurio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/apicurio/attachments/20190622/39ffd09d/attachment-0001.html From eric.wittmann at redhat.com Sun Jun 23 13:09:24 2019 From: eric.wittmann at redhat.com (Eric Wittmann) Date: Sun, 23 Jun 2019 13:09:24 -0400 Subject: [Apicurio] How to configure to use internally hosted github repository In-Reply-To: References: Message-ID: 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 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 at redhat.com] > *Sent:* Friday, June 21, 2019 10:51 AM > *To:* Gupta, Madhu > *Cc:* apicurio at 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-apicurio#section-71-enable-github-account-linking > > > > 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 > 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 at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/apicurio > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/apicurio/attachments/20190623/cfa7edb8/attachment.html