terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

oauth app creation resource for github

Open sharmavijay86 opened this issue 4 years ago • 9 comments

Hey there, We are working on some frontend react integrations with terraform code. Where in we want to provision application and then create on github oauth application. All above is with terraform. So that now we can incorporate this oauth details with application to make everything automated, from oauth app creation to web app creation to its integration etc.

I don't see the resource type in documentation, so any way around.??

sharmavijay86 avatar May 17 '21 13:05 sharmavijay86

Seems like we'd need a new resource to satisfy your use case. We currently do not have a way to create apps via the provider.

jcudit avatar May 22 '21 00:05 jcudit

Would love this as well, this is one of the last things we need to automate within github.

Kampe avatar Jul 12 '21 22:07 Kampe

This would be great to implement inline w/ the https://docs.github.com/en/rest/reference/apps#create-a-github-app-from-a-manifest API functionality.

mike-kaminski avatar Aug 31 '21 13:08 mike-kaminski

We also have an use-case where an automatic creation of OAuth Apps comes handy as we are trying to declare everything in our infrastructure.

I am happy to work on this issue. However, what @mike-kaminski has suggested above

This would be great to implement inline w/ the https://docs.github.com/en/rest/reference/apps#create-a-github-app-from-a-manifest API functionality.

only works for a GitHub App creation. While I am also interested in creating GitHub Apps automatically (I might open another issue for this), IIUC the manifest API cannot solve the original problem in this issue.

Moreover, I could not find a feature both in go-github library nor in the official GitHub REST API to create an OAuth App directly. At the current time this looks like an upstream issue, but any other thoughts on this?

kory33 avatar Apr 06 '22 04:04 kory33

also looking forward to this

riuvshyn avatar Apr 08 '22 12:04 riuvshyn

I'd love to see this implemented as well!

ClaytonOlleyNutrien avatar Jun 07 '22 21:06 ClaytonOlleyNutrien

Any news on that? I would like to have this implemented to create rancher clusters with terraform where user can authenticate via github. Is the go-api a showstopper here?

gthieleb avatar Feb 24 '23 10:02 gthieleb

It's currently waiting on upstream support. We would need this feature available in the GitHub API before we could work on it at the Terraform provider level.

kfcampbell avatar Mar 31 '23 23:03 kfcampbell

It's currently waiting on upstream support. We would need this feature available in the GitHub API before we could work on it at the Terraform provider level.

Is this supported by https://github.com/google/go-github/pull/1335 or is there more functionality needed?

lewismiddleton avatar Mar 04 '24 16:03 lewismiddleton