Added JWT identity for ios and android#89
Conversation
fbartho
left a comment
There was a problem hiding this comment.
@tinni95 thanks for your contribution!
Unfortunately, I'm not super comfortable with this PR in it's current state.
- There are files and changes that shouldn't be there
- There are files missing, that appear to need to be there
- This completely changes how we initialize things for all users, rather than being an add on, that people can opt-into only if required.
- There's no documentation linked for me to understand what you're trying to accomplish, how Zendesk recommends you do this, or how to verify that it's working?
Please let me know if you'd like to remedy these issues!
|
|
||
| api group: 'com.zendesk', name: 'chat', version: safeExtGet('zendeskChatVersion', '3.1.0') | ||
| api group: 'com.zendesk', name: 'messaging', version: safeExtGet('zendeskMessagingVersion', '5.1.0') | ||
| api group: 'com.zendesk', name: 'support', version: safeExtGet('zendeskMessagingVersion', '2.3.0') |
There was a problem hiding this comment.
| api group: 'com.zendesk', name: 'support', version: safeExtGet('zendeskMessagingVersion', '2.3.0') | |
| api group: 'com.zendesk', name: 'support', version: safeExtGet('zendeskSupportVersion', '2.3.0') |
| @@ -0,0 +1,6 @@ | |||
| #Thu Oct 29 18:09:13 CET 2020 | |||
There was a problem hiding this comment.
I'm not super convinced these gradle/gradle-wrapper files are necessary for a library. Did you mean to commit them?
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/taskrabbit/react-native-zendesk-chat" | ||
| "url": "https://github.com/tinni95/react-native-zendesk-chat" |
There was a problem hiding this comment.
| "url": "https://github.com/tinni95/react-native-zendesk-chat" | |
| "url": "https://github.com/taskrabbit/react-native-zendesk-chat" |
| [ZDKChat initializeWithAccountKey:zenDeskKey queue:dispatch_get_main_queue()]; | ||
| } | ||
| ZDKJWTAuth *authenticator = [ZDKJWTAuth new]; | ||
| [authenticator setUrl:appId]; |
| .withPhoneFieldStatus(getFieldStatusOrDefault(options, "phone", defaultValue)) | ||
| .withDepartmentFieldStatus(getFieldStatusOrDefault(options, "department", defaultValue)); | ||
| .withPhoneFieldStatus(getFieldStatusOrDefault(options, "phone", defaultValue)); | ||
| //.withDepartmentFieldStatus(getFieldStatusOrDefault(options, "department", defaultValue)); |
| B6462EB61C603E340010294B = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| A73FC0C32550745000B7EC05 /* jwtAuth.swift */, |
There was a problem hiding this comment.
Adding Swift to react-native libraries can cause problems for some customers. Was this the only way to accomplish the task?
| SKIP_INSTALL = YES; | ||
| SWIFT_OBJC_BRIDGING_HEADER = "RNZendeskChat-Bridging-Header.h"; | ||
| SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
| SWIFT_VERSION = 5.0; |
There was a problem hiding this comment.
Our customers may not be using SWIFT_VERSION = 5.0
| objects = { | ||
|
|
||
| /* Begin PBXBuildFile section */ | ||
| A73FC0C42550745000B7EC05 /* jwtAuth.swift in Sources */ = {isa = PBXBuildFile; fileRef = A73FC0C32550745000B7EC05 /* jwtAuth.swift */; }; |
There was a problem hiding this comment.
This file appears missing?
Added the ability to pass a URL as the endpoint to get an authentication token to send and authenticate inside the chat