Title: Extend DefaultHttpProvider to auto-refresh token while handling ErrorResponse · Issue #51 · microsoftgraph/msgraph-sdk-java-auth · GitHub
Open Graph Title: Extend DefaultHttpProvider to auto-refresh token while handling ErrorResponse · Issue #51 · microsoftgraph/msgraph-sdk-java-auth
X Title: Extend DefaultHttpProvider to auto-refresh token while handling ErrorResponse · Issue #51 · microsoftgraph/msgraph-sdk-java-auth
Description: Expected behavior Implementation of IHttpProvider class which gives the capability to handle Token Invalidation Errors within the class itself. Consider a Scenario, wherein you can pass RefreshToken to the HttpProvider Impl class during ...
Open Graph Description: Expected behavior Implementation of IHttpProvider class which gives the capability to handle Token Invalidation Errors within the class itself. Consider a Scenario, wherein you can pass RefreshToke...
X Description: Expected behavior Implementation of IHttpProvider class which gives the capability to handle Token Invalidation Errors within the class itself. Consider a Scenario, wherein you can pass RefreshToke...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java-auth/issues/51
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extend DefaultHttpProvider to auto-refresh token while handling ErrorResponse","articleBody":"\u003c!-- Read me before you submit this issue\r\n\r\nFirst off, thank you for taking the time to open this issue! We do appreciate it. Please bear with us if we don't get to this right away.\r\n\r\nIf this is a question about the Microsoft Graph service API, or a question about how to use this SDK, please post your question to StackOverflow with the [microsoftgraph] tag.\r\nhttps://stackoverflow.com/questions/tagged/microsoft-graph\r\n\r\nThis repo is for the Microsoft Graph Java SDK. Issues opened in this repo should only target this SDK.\r\n\r\nBefore you open this issue, did you:\r\n- Search the issues to determine whether someone already opened this issue?\r\n- Search StackOverflow for an answer?\r\n- Capture the repro steps and gather the information requested in the steps below to reproduce your scenario?\r\n- Review the samples under github.com/microsoftgraph? They can help for some scenarios.\r\n- Take a look at the functional tests in this repo? They may have an example for you. See the [functional tests](https://github.com/microsoftgraph/msgraph-sdk-java/tree/master/src/test/java/com/microsoft/graph/functional)\r\n\r\nPlease provide the following before submitting this issue:\r\n- Expected behavior. Please provide **links to the specific [Microsoft Graph documentation](https://developer.microsoft.com/en-us/graph/docs/concepts/overview)** you used to determine the expected behavior. \r\n- Actual behavior. Provide error codes, stack information, and a [Fiddler](http://www.telerik.com/fiddler) capture of the request and response (please remove personally identifiable information before posting).\r\n- Steps to reproduce the behavior. Include your code, IDE versions, client library versions, and any other information that might be helpful to understand your scenario.\r\n-->\r\n\r\n\r\n### Expected behavior\r\nImplementation of IHttpProvider class which gives the capability to handle Token Invalidation Errors within the class itself. Consider a Scenario, wherein you can pass RefreshToken to the HttpProvider Impl class during initialization. so that while handling the error response in 'handleErrorResponse' method , if an Invalid Token is detected, We could refresh the token and if successfull retry the request. \r\nThis all abstracts the complexity of detecting the token expiry down the line and then having to recreate the api request\r\nWhat do you guys think?\r\n\r\n\r\n### Actual behavior\r\n\r\n\r\n\r\n\r\n### Steps to reproduce the behavior\r\n\r\n\r\n\r\n\r\n \r\n[AB#7120](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/7120)","author":{"url":"https://github.com/zeeshan-v1","@type":"Person","name":"zeeshan-v1"},"datePublished":"2019-06-12T15:49:19Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java-auth/issues/51"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3bf83ca2-a8a8-5328-b354-c27024976a6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C572:1204FD:14AE366:1AE1525:6B050398 |
| html-safe-nonce | f9052ce3a5b6c68201ddc3024a976e57af272d50ecf2a0558860002d615d43d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTcyOjEyMDRGRDoxNEFFMzY2OjFBRTE1MjU6NkIwNTAzOTgiLCJ2aXNpdG9yX2lkIjoiODcxNjU0Njc3NjUyNzg2NDcyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cef6fbb49d8df62000a94e75ca13e3bd6e645227f64996fc5705e70d3a6f4795 |
| hovercard-subject-tag | issue:693136719 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java-auth/51/issue_layout |
| twitter:image | https://opengraph.githubassets.com/215e9a57f27634ed97fe0cc2f8a70ed3dcfb9c5c25ee515dc42f66352e9ce0b5/microsoftgraph/msgraph-sdk-java-auth/issues/51 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/215e9a57f27634ed97fe0cc2f8a70ed3dcfb9c5c25ee515dc42f66352e9ce0b5/microsoftgraph/msgraph-sdk-java-auth/issues/51 |
| og:image:alt | Expected behavior Implementation of IHttpProvider class which gives the capability to handle Token Invalidation Errors within the class itself. Consider a Scenario, wherein you can pass RefreshToke... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeeshan-v1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java-auth git https://github.com/microsoftgraph/msgraph-sdk-java-auth.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 166441552 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java-auth |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 166441552 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java-auth |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width