-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced steps for local development setup for social media auth (#1374)
- Loading branch information
1 parent
d3759cf
commit 33db959
Showing
13 changed files
with
297 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module "google_oauth_client" { | ||
source = "./modules/google_oauth_client" | ||
google_cloud_email = var.google_cloud_email | ||
google_cloud_project_name = var.google_cloud_project_name | ||
google_organization_domain = var.google_organization_domain | ||
} | ||
|
||
# can't implement github support at this time, no API available for | ||
# managing oauth. Leaving this here as a breadcrumb for the future. | ||
# module "github_oauth_client" { | ||
# source = "./modules/github_oauth_client" | ||
# } |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
variable "github_homepage_url" { | ||
type = string | ||
description = "The URL of the GitHub OAuth app" | ||
default = "http://localhost:8000" | ||
} | ||
|
||
variable "github_authorization_callback_url" { | ||
type = string | ||
description = "The URL of the GitHub OAuth app callback" | ||
default = "http://localhost:8000/accounts/github/login/callback/" | ||
} | ||
|
||
variable "github_token" { | ||
type = string | ||
description = "The GitHub token for creating the OAuth app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
resource "google_project" "project" { | ||
project_id = var.google_cloud_project_name | ||
name = "Boost Development" | ||
org_id = replace(data.google_organization.org.id, "organizations/", "") | ||
deletion_policy = "DELETE" | ||
} | ||
|
||
data "google_organization" "org" { | ||
domain = var.google_organization_domain | ||
} | ||
|
||
resource "google_project_service" "project_service" { | ||
project = google_project.project.project_id | ||
service = "iap.googleapis.com" | ||
} | ||
|
||
resource "google_iap_brand" "project_brand" { | ||
support_email = var.google_cloud_email | ||
application_title = "Cloud IAP Protected Application for Boost Development" | ||
project = google_project_service.project_service.project | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
variable "google_cloud_email" { | ||
type = string | ||
description = "The email address of the Google Cloud user" | ||
} | ||
|
||
variable "google_cloud_project_name" { | ||
type = string | ||
description = "The project name for the Google Cloud project" | ||
} | ||
|
||
variable "google_organization_domain" { | ||
type = string | ||
description = "The domain of the Google Cloud organization" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
terraform { | ||
backend "local" { | ||
path = "terraform.tfstate" | ||
} | ||
required_providers { | ||
google = { | ||
source = "hashicorp/google" | ||
version = "6.8.0" | ||
} | ||
http = { # needed for github api requests | ||
source = "hashicorp/http" | ||
version = "~> 2.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
variable "google_cloud_email" { | ||
type = string | ||
description = "The email address of the Google Cloud user" | ||
} | ||
|
||
variable "google_cloud_project_name" { | ||
type = string | ||
description = "The project name for the Google Cloud project" | ||
default = "localboostdev" | ||
} | ||
|
||
variable "google_organization_domain" { | ||
type = string | ||
description = "The domain of the Google Cloud organization" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters