Comments (7)
Hi @alkar, thanks for reporting this. Unfortunately, Auth0 doesn't document the addon's very well and it's a trial and error process on our part. It should be a straightforward fix I hope, so I might be able to patch this soon. Meanwhile, if you're feeling adventurous please feel free to give it a go :)
from terraform-provider-auth0.
@alkar I think it's a good way to go to define arbitrary JSON as it leaves the flexibility up to users. Given the state of addons in the Auth0 API, it's hard for us to maintain this cause of the lack of documentation (btw I've contacted their support team about it).
But it will pose a problem with users who already make use of addons defined the current way as this would be a backward incompatible change.
Please give me some time to look into your current progress and see how it all ties in.
from terraform-provider-auth0.
I'll have a go at it, seems like an easy change. Wondering if you'd rather go with something like https://github.com/iancoleman/strcase or would rather have a solution based on the standard library?
from terraform-provider-auth0.
@alexkappa I've made some progress in converting the keys to what is expected by the sampl plugin.
I wanted to add a couple more changes that address default and empty values: since sampl
has its own set of defaults, I think it would be better (as in, safer and easier to maintain) to rely on the upstream defaults. Removing the schema defaults means that the attributes will be initialised with empty values which would then have to be caught programmatically. I felt this was a rather brittle approach and I backtracked a bit; what if we instead dropped support for individual attributes completely and instead allowed the user to supply their own JSON configuration string?
For example,
resource "auth0_client" "saml" {
name = "saml-example"
app_type = "regular_web"
callbacks = ["https://example.com/saml"]
addons {
samlp = <<EOF
{ my_config_here }
EOF
}
}
I personally feel this approach is much more flexible and reduces the maintenance overhead (and shouldn't be strange to users, eg. IAM policies are more often than not managed this way).
Perhaps in the future, if there's more concrete documentation on samlp
(and other addons) we could introduce datasources to handle config in HCL, again, similar to how aws_iam_policy_document
works.
Thoughts?
from terraform-provider-auth0.
@alexkappa Much agreed! I've not progressed any further on that branch, happy to work on a PoC and share.
I would argue that given the provider is still on 0.1.x
there shouldn't be much relying on API compatibility between versions (I know I don't). Also, the current implementation produces invalid config so even if users do use it, it's going to be an actual fix and worth breaking the API for. But that's all up to you to decide how to handle :)
from terraform-provider-auth0.
Hey, any progress here? Just discovered this the hard way.
from terraform-provider-auth0.
This issue is stale because it has been open 30 days with no activity.
Stale issues will be closed after 5 days if no action is taken. If you
think this issue should not be closed, remove the stale
label.
from terraform-provider-auth0.
Related Issues (20)
- Add native_social_login option to auth0_client HOT 1
- auth0_tenant flags not working as expected HOT 1
- Support for `session_cookie` argument in `auth0_tenant` resource HOT 1
- `auth0_connection`: add `show_as_button` option HOT 5
- Allow enabling "Connection button" for Azure Active Directory enterprise connection (waad) HOT 1
- auth0_resource_server `scopes` are not configured properly via terraform HOT 1
- `auth0_action` for `post-user-registration` trigger is created as Post Login in Auth0 HOT 1
- User data source HOT 2
- User roles resource HOT 1
- Error when creation Auth) connection with strategy = "auth0-adldap". HOT 2
- Multiple tenants HOT 4
- Only send tenant configuration if changed HOT 1
- Where can I find the ID of a tenant? HOT 2
- Dependency didn't resolved between trigger binding and action when we want to delete an action. HOT 1
- How do I find the ID of various resources in the portal? HOT 3
- Allow to update Node Runtime Extensibility on Tenant settings HOT 2
- Which Terraform resource covers "Machine to Machine Applications" under the applications page? HOT 1
- Organization connection does not get updated HOT 1
- THIS REPOSITORY HAS MOVED
- Thank you!
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.