Skip to content
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 Support for Token Exchange Profile #1119

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

duedares-rvj
Copy link
Contributor

@duedares-rvj duedares-rvj commented Jan 14, 2025

🔧 Changes

Added new resource and data-source auth0_token_exchange_profile

resource "auth0_token_exchange_profile" "my_token_exchange_profile" {
	name = "my-token-prof"
	subject_token_type = "https://acme.com/cis-token"
	action_id = auth0_action.my_action.id
	type = "custom_authentication"
}

📚 References

Auth0 Management API: Token Exchange Profiles Documentation
POST Token Exchange Profile
GET All Token Exchange Profiles
GET Token Exchange Profile by ID
PATCH Token Exchange Profile
DELETE Token Exchange Profile

🔬 Testing

Relevant test cases has been added:
make test-acc FILTER=TestTokenExchangeProfile

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@duedares-rvj duedares-rvj requested a review from a team as a code owner January 14, 2025 05:31
@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 82.11382% with 22 lines in your changes missing coverage. Please review.

Project coverage is 89.16%. Comparing base (ed23c52) to head (935f20f).

Files with missing lines Patch % Lines
internal/auth0/tokenexchangeprofile/resource.go 84.81% 8 Missing and 4 partials ⚠️
internal/auth0/tokenexchangeprofile/data_source.go 60.00% 10 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1119      +/-   ##
==========================================
- Coverage   89.21%   89.16%   -0.05%     
==========================================
  Files         130      134       +4     
  Lines       18060    18183     +123     
==========================================
+ Hits        16112    16213     +101     
- Misses       1379     1397      +18     
- Partials      569      573       +4     
Files with missing lines Coverage Δ
internal/auth0/tokenexchangeprofile/expand.go 100.00% <100.00%> (ø)
internal/auth0/tokenexchangeprofile/flatten.go 100.00% <100.00%> (ø)
internal/provider/provider.go 100.00% <ø> (ø)
internal/auth0/tokenexchangeprofile/data_source.go 60.00% <60.00%> (ø)
internal/auth0/tokenexchangeprofile/resource.go 84.81% <84.81%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants