-
Notifications
You must be signed in to change notification settings - Fork 55
Adding DPoP feature for flutter #667
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
Conversation
This comment has been minimized.
This comment has been minimized.
| val builder = api.userInfo(request.data["accessToken"] as String) | ||
| val accessToken = request.data["accessToken"] as String | ||
| val tokenType = request.data["tokenType"] as? String ?: "Bearer" | ||
| val builder = api.userInfo(accessToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to pass the token type to the api.userInfo(accessToken, tokenType)
| builder.addParameters(request.data["parameters"] as Map<String, String>) | ||
| } | ||
|
|
||
| builder.addHeader("Authorization", "$tokenType $accessToken") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add the header here. the android native client will take care of it
| let tokenType = arguments[Argument.tokenType] as? String ?? "Bearer" | ||
|
|
||
| client | ||
| .userInfo(withAccessToken: accessToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as android , tokenType should be passed here to the userInfo call
client .userInfo(withAccessToken: accessToken,tokenType)
| client | ||
| .userInfo(withAccessToken: accessToken) | ||
| .parameters(parameters) | ||
| .headers(["Authorization": "\(tokenType) \(accessToken)"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this headers here
feat: Add comprehensive DPoP (RFC 9449) support across all platforms
This commit implements full DPoP (Demonstrating Proof of Possession) support
for the auth0-flutter SDK across Web, Android, and iOS platforms, enhancing
security by cryptographically binding access tokens to clients.
📦 Dependencies Updated
✨ New Features
Web Platform
useDPoPconstructor parameter to Auth0Web classAndroid Platform
iOS/macOS Platform
📚 Documentation
🧪 Testing
🔧 Technical Changes
Build Configuration
🔐 Security Enhancements
🚀 Platform Support