-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement jwt to backend service and operation executor for subscript…
…ion specific operation Go through all backend services and enable them with jwt: 1. Find an OperationExecutor (ex. SubscriptionOperationExecutor.kt) 2. Look for any BackendService that this OperationExecutor contains (ex. _subscriptionBackendService) 3. Go to that BackendService, look through all its methods. Add jwt: String? = null if this method is one of the authorized operation in the JWT dev documentation. (ex. createSubscription() in this case), make sure to modify both ISubscriptionBackendService.kt and SubscriptionBackendService.kt) 4. In implementation of the BackendService (ex. SubscriptionBackendService.kt), look for all http client calls such as _httpClient.post / get / patch and etc, and add jwt as the last parameter. 5. Go back to the OoperationExecutor (SubscriptionOperationExecutor.kt), if there is no _identityModelStore in its property, add private val _identityModelStore: IdentityModelStore as its property. 6. Update parameters in all backend service calls with _identityModelStore.model.jwtToken in the end
- Loading branch information
1 parent
7cfa79a
commit 268d1a7
Showing
6 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters