[COMPASS-7093] Provide a user friendly interface for token request and token refresh in oidc-plugin Created: 09/Aug/23 Updated: 12/Sep/23 |
|
| Status: | Open |
| Project: | Compass |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sergey Petushkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 5 |
| Description |
|
Instead of calling plugin.mongoClientOptions.authMechanismProperties.REQUEST_TOKEN_CALLBACK and plugin.mongoClientOptions.authMechanismProperties.REFRESH_TOKEN_CALLBACK we should be able to directly call requestToken and refreshToken. When calling token refresh it should not try to request token and throw if refresh failed for any reason |