Skip to content

Commit

Permalink
Merge pull request #25 from PrisisForks/feature/enable-allow_offline_…
Browse files Browse the repository at this point in the history
…access-argument

feat: enable allow_offline_access argument
  • Loading branch information
aghamyan44 authored Mar 28, 2023
2 parents cad7130 + e65205e commit b84bc16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions auth0-api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ module "auth0_api" {
token_lifetime = each.value.token_lifetime
token_lifetime_for_web = each.value.token_lifetime_for_web
token_dialect = each.value.token_dialect
allow_offline_access = each.value.allow_offline_access
}
1 change: 1 addition & 0 deletions modules/auth0-api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "auth0_resource_server" "rs" {
skip_consent_for_verifiable_first_party_clients = var.skip_consent_for_verifiable_first_party_clients
enforce_policies = var.enforce_policies
token_dialect = var.token_dialect
allow_offline_access = var.allow_offline_access

dynamic "scopes" {
for_each = var.scopes
Expand Down
7 changes: 7 additions & 0 deletions modules/auth0-api/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ variable "token_dialect" {
type = string
default = null
}

variable "allow_offline_access" {
description = "Enable this setting to allow applications to ask for refresh tokens for the API."
type = bool
default = false
}

variable "scopes" {
description = "List of permissions (scopes) used by this resource server."
type = list(object({
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ variable "apis" {
token_lifetime = optional(number, 86400)
token_lifetime_for_web = optional(number, 7200)
token_dialect = optional(string, null)
allow_offline_access = optional(bool, false)
}))

default = []
Expand Down

0 comments on commit b84bc16

Please sign in to comment.