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

Added support for global token revocation in SAML connections within auth0_connection resource #1142

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

Conversation

developerkunal
Copy link
Contributor

🔧 Changes

  • Added support for global token revocation in the auth0_connection resource for SAML connections.
  • Introduced two new attributes in the auth0_connection resource:
    • global_token_revocation_jwt_iss – Specifies the issuer for global token revocation.
    • global_token_revocation_jwt_sub – Specifies the subject for global token revocation.

These fields enable better control over token revocation within SAML connections.

📖 Example

You can configure the auth0_connection resource with global token revocation support as follows:

resource "auth0_connection" "samlp" {  
  name     = "SAML-Connection"  
  strategy = "samlp"  

  options {  
    global_token_revocation_jwt_iss = "issuer.example.com"  
    global_token_revocation_jwt_sub = "user123"  
  }  
}  

📚 References

🔬 Testing

  1. Apply the above configuration to create or update an auth0_connection.
  2. Verify that the attributes are correctly stored and applied in the Auth0 configuration.

📝 Checklist

  • All new/changed functionality is covered by tests (or N/A)
  • Documentation has been updated for the new attributes (or N/A)

@developerkunal developerkunal requested a review from a team as a code owner January 31, 2025 09:29
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.21%. Comparing base (32cef5c) to head (bf5006e).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1142   +/-   ##
=======================================
  Coverage   89.20%   89.21%           
=======================================
  Files         134      134           
  Lines       18329    18333    +4     
=======================================
+ Hits        16351    16355    +4     
  Misses       1399     1399           
  Partials      579      579           
Files with missing lines Coverage Δ
internal/auth0/connection/expand.go 93.67% <100.00%> (+0.01%) ⬆️
internal/auth0/connection/flatten.go 80.20% <100.00%> (+0.04%) ⬆️

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