Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created January 28, 2021 22:11
Show Gist options
  • Save MatthewJDavis/54f794ff60ed97c77f6ab3bd65067f3e to your computer and use it in GitHub Desktop.
Save MatthewJDavis/54f794ff60ed97c77f6ab3bd65067f3e to your computer and use it in GitHub Desktop.
Main terraform file for okta app
terraform {
required_providers {
okta = {
source = "oktadeveloper/okta"
version = "~> 3.6"
}
}
}
# Configure the Okta Provider - API token set in env var.
provider "okta" {
org_name = var.org_name
base_url = var.base_url
}
resource "okta_app_oauth" "sample_dotnet" {
label = "Sample DotNet"
type = "web"
consent_method = "REQUIRED"
login_uri = "https://localhost:5001/authorization-code/callback"
post_logout_redirect_uris = ["https://localhost:5001/signout-callback-oidc"]
redirect_uris = ["https://localhost:5001/signin-oidc"]
omit_secret = false
grant_types = ["authorization_code"]
response_types = ["code"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment