feat(rn-oidc): add device authorization grant support (SDKS-5166) - #69
Conversation
|
Important Review skippedToo many files! This PR contains 104 files, which is 4 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (104)
You can disable this status message by setting the 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 |
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (45.50%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #69 +/- ##
============================================
- Coverage 73.09% 71.39% -1.70%
- Complexity 261 265 +4
============================================
Files 167 180 +13
Lines 21637 23275 +1638
Branches 779 1027 +248
============================================
+ Hits 15816 16618 +802
- Misses 5732 6502 +770
- Partials 89 155 +66
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
rodrigoareis
left a comment
There was a problem hiding this comment.
Overall changes looks good. Left comments
|
PR reviewed. Left some comments. |
Restore displaced createWebClient KDoc/annotation in Android modules; add KDoc to new device APIs (Android modules, iOS Common/Impl). Swap Android device registry to SimpleRegistry. Verify deviceClientId ownership before cancelling flows on both platforms (iOS DeviceTaskStore owner map with atomic remove(ownedBy:) and cancelAll(for:)). Cancel owned tasks before registry removal on iOS dispose. Document nextPollAt epoch-ms unit contract. Map all 10 missing config fields in RNPingOidc.mm createOidcDeviceClient for TurboModule parity. Wire deviceAuthorizationEndpoint end-to-end through core OidcOpenIdConfig, OIDC handles, and Journey parser/override paths. Restore README sections replaced by device-grant docs. Add Detox E2E for the device-flow scenario (expired/accessDenied/failure).
Summary
@ping-identity/rn-oidc:createOidcDeviceClient,useDeviceAuthGranthook withDeviceAuthGrantProvider, and the newdeviceOpenVerificationUrl/openVerificationUrlAPI for on-device browser approvalopenIdendpoint overrides (notablydeviceAuthorizationEndpointfor Advanced Identity Cloud) with merge-onto-discovery semantics in rn-oidc, rn-journey, and rn-coreTest plan
yarn workspace @ping-identity/rn-oidc test- 48/48 (facade, hook, client-swap, openVerificationUrl tests):ping-identity_rn-oidc:compileDebugKotlin- clean rebuildChangesets
device-auth-grant-hook,oidc-partial-openid-override-and-cancel-fix,oidc-openid-config-optional-fields,journey-partial-openid-override,core-openid-config-optional-fields,journey-verification-uri,davinci-verification-uri,device-open-verification-url🤖 Generated with Claude Code