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 5 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 Report

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

Project coverage is 89.23%. Comparing base (6387564) to head (c168164).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/auth0/tokenexchangeprofile/resource.go 82.60% 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.29%   89.23%   -0.06%     
==========================================
  Files         130      134       +4     
  Lines       18027    18140     +113     
==========================================
+ Hits        16097    16188      +91     
- Misses       1363     1381      +18     
- Partials      567      571       +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 82.60% <82.60%> (ø)

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