-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "auth0_clients" data source for listing multiple clients with filtering #1080
Conversation
This fixes #784 |
@devin-brenton Thank you so much for this PR. This is great! That should be all of this PR. :) |
There are a couple of minor linting issues ( |
@devin-brenton what do you think of moving this to the client directory? An example of how we usually do it is in organization. The files would probably be named |
I like that idea. Could help clean things up a bit by keeping it all in one package. |
@acwest I've moved the files into the client package and tests look good on my end. I'm having trouble understanding why the test is failing in the pipeline. I'm running the acc tests against a test tenant I spun up. |
I will try it on mine, I haven't looked at it the error in detail yet. The pipeline can be odd, I have occasionally found that it fails when the terraform version is sufficiently different. I updated the test output a little while ago to include the terraform version the pipeline is using. |
@devin-brenton Hey Devin! Thank you again for the contribution here! |
Looks good now. The last annoyance is to get you set up to sign your commits... Here is Github's documentation on setting it up: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits |
e7ba0d1
to
3596e40
Compare
3596e40
to
2ef7b11
Compare
@acwest Huge thanks for the helpful links. Looks like the commits are now signed appropriately. Let me know if there's anything else needed. |
Good to merge! |
🔧 Changes
This PR adds a new data source
auth0_clients
that allows retrieving a list of clients from Auth0 with optional filtering capabilities. This complements the existingauth0_client
data source which only returns a single client.Key features:
auth0_clients
name_filter
: Filter clients by name (partial matches supported)app_types
: Filter by application typesis_first_party
: Filter for first-party clientsImplementation notes:
auth0_client
data source but removes fields that aren't commonly needed in list operationsclient_aliases
logo_uri
oidc_conformant
oidc_backchannel_logout_urls
organization_usage
organization_require_behavior
cross_origin_auth
cross_origin_loc
custom_login_page_on
custom_login_page
form_template
require_pushed_authorization_requests
mobile
initiate_login_uri
native_social_login
refresh_token
signing_keys
encryption_key
sso
sso_disabled
jwt_configuration
addons
default_organization
compliance_level
require_proof_of_possession
Example usage:
🔬 Testing
To run the tests:
📝 Checklist
auth0_client
data sourceAdditional Notes: