Comments (3)
Hey, I am not sure, if it relates here as well, but I have an issue with auth0 client as well.
My configuration:
refresh_token {
rotation_type = "non-rotating"
expiration_type = "non-expiring"
infinite_token_lifetime = "false"
infinite_idle_token_lifetime = "false"
}
Causing next output:
Error: 400 Bad Request: Neither infinite_token_lifetime nor infinite_idle_token_lifetime can be true when token expiration type is 'non-expiring'
Does it looks like a bug as well which is related to these 2 fields?
from terraform-provider-auth0.
Hey folks, this got fixed through #187 and it will be available in the next release planned towards the end of next week (approximately). We'll be closing this down cuz of this.
from terraform-provider-auth0.
Sorry for my bad english.
I have been experimenting something similiar.
I have this terraform script:
terraform {
required_providers {
auth0 = {
source = "auth0/auth0"
version = "0.30.2"
}
}
}
provider "auth0" {
domain = "some-valid-domain"
client_id = "some-valid-client-id"
client_secret = "some-valid-client-secret"
}
resource "auth0_client" "auth0_test" {
name = "AppName"
description = "AppDescription"
app_type = "spa"
oidc_conformant = true
token_endpoint_auth_method = "none"
refresh_token {
rotation_type = "non-rotating"
expiration_type = "non-expiring"
token_lifetime = 36000
}
jwt_configuration {
alg = "RS256"
}
}
This script works fine the very first time but when I execute it again I get:
Error: 400 Bad Request: Neither infinite_token_lifetime nor infinite_idle_token_lifetime can be true when token expiration type is 'non-expiring'
According to the documentation both values are false by default:
infinite_idle_token_lifetime - (Optional) Boolean, (Default=false) Whether or not inactive refresh tokens should be remain valid indefinitely.
infinite_token_lifetime - (Optional) Boolean, (Default=false) Whether or not refresh tokens should remain valid indefinitely. If false, token_lifetime should also be set
Adding more information about this:
This is the plan output for the first time:
+ refresh_token {
+ expiration_type = "non-expiring"
+ rotation_type = "non-rotating"
+ token_lifetime = 36000
}
The second time, the plan output show:
~ refresh_token {
- idle_token_lifetime = 35999 -> null
- infinite_idle_token_lifetime = true -> null
- infinite_token_lifetime = true -> null
# (4 unchanged attributes hidden)
}
Seem like both infinite_idle_token_lifetime and infinite_token_lifetime were saved as true, right?
from terraform-provider-auth0.
Related Issues (20)
- auth0 cli not importing email templates, hooks and rules HOT 1
- Client creation suddenly no longer working with oauth2: "server_error" "callback is not a function" HOT 2
- auth0_role_permissions not allowing multiple times the permssions appending HOT 2
- Service not enabled within domain: https://sample.api.com HOT 1
- Add proper support for all oidc_logout parameters
- Add data source for auth0_action resource HOT 1
- Auth0 Terraform Provider not handling the state for `auth0_role_permissions` resources HOT 2
- Add terraform resources for new feature "Forms"
- Incorrect token_endpoint_auth_method for SPA in Auth0 via Terraform HOT 6
- importing client_credentials require env variables instead of provider config HOT 3
- Add support for auth0_tenant.error_page HOT 1
- OIDC Connection Requires Over-Specification (Again?) HOT 4
- IdP-initiated SSO Behavior rejects request after creation via terraform
- auth0_client datasource breaks terraform dependency graph after migrating to v1.0 of auth0 provider HOT 1
- auth0_branding: Provider produced inconsistent final plan
- Issue with Deleting Action Before Updating Action Trigger Flow
- Add support for error_page tenant setting
- Unsupported attribute scopes used in docs (auth0_resource_server_scope, auth0_resource_server_scopes)
- data.auth0_role not limiting users to 1000
- Documentation on debug mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-auth0.