fix(datasource): move expiresIn after Scope in OAuth2 form (closes #31059)#41750
fix(datasource): move expiresIn after Scope in OAuth2 form (closes #31059)#41750Mrsandeep27 wants to merge 1 commit intoappsmithorg:releasefrom
Conversation
Relocates the 'Authorization expires in (seconds)' input in the Authorization Code OAuth2 datasource form so it renders immediately after the shared OAuth2 common fields (which ends with Scope), grouping all authentication-related inputs together and improving discoverability. Closes appsmithorg#31059 Co-Authored-By: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughReorders the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
|
This fix is still relevant and the PR is ready to merge. Happy to rebase on latest main if needed — just let me know! |
Summary
Closes #31059.
Moves the Authorization expires in (seconds) input in the OAuth2 Authorization Code datasource form so it renders directly after the common OAuth2 fields (which ends with Scope(s)), keeping all authentication-related inputs grouped together as requested in the issue.
Before vs after
Only touches
RestAPIDatasourceForm.tsx -> renderOauth2AuthorizationCode(). The order changes from:to:
expiresInis intentionally kept insiderenderOauth2AuthorizationCode(notrenderOauth2Common) so it does not show up for the Client Credentials grant type, matching the current behavior.Test plan
Settings → Datasources → Create → Authenticated API → Authentication type: OAuth 2.0 → Grant type: Authorization Code— verifyAuthorization expires in (seconds)now appears immediately afterScope(s)/Client Authentication.expiresInfield is still hidden (unchanged behaviour).authentication.expiresInvalue is preserved.app/client.🤖 Generated with Claude Code
Summary by CodeRabbit