{"id":16356936,"url":"https://github.com/previousdeveloper/retrofit.oauth-2","last_synced_at":"2025-10-26T04:30:21.292Z","repository":{"id":30039505,"uuid":"33588581","full_name":"previousdeveloper/Retrofit.OAuth-2","owner":"previousdeveloper","description":"Simple OAuth2 Resource Owner Password Credentials Example","archived":false,"fork":false,"pushed_at":"2015-06-28T10:12:03.000Z","size":223,"stargazers_count":11,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T14:17:06.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/previousdeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-08T06:20:57.000Z","updated_at":"2021-03-19T07:28:22.000Z","dependencies_parsed_at":"2022-09-07T18:12:12.754Z","dependency_job_id":null,"html_url":"https://github.com/previousdeveloper/Retrofit.OAuth-2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2FRetrofit.OAuth-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2FRetrofit.OAuth-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2FRetrofit.OAuth-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2FRetrofit.OAuth-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/previousdeveloper","download_url":"https://codeload.github.com/previousdeveloper/Retrofit.OAuth-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238254145,"owners_count":19441797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T01:44:35.070Z","updated_at":"2025-10-26T04:30:15.957Z","avatar_url":"https://github.com/previousdeveloper.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retrofit-OAuth-2-Resource-Owner-Password-Credentials\nSimple OAuth2 Resource Owner Password Credentials.\n\n\n\n#GetAccessToken\n\nThis will add the necessary oAuth headers to each request.\n```java\n  public interface IOauthService {\n\n    @POST(\"/oauth/token\")\n    void getAccessToken(@Body AccessTokenRequest accessTokenRequest,\n                        Callback\u003cAccessTokenResponse\u003e responseCallback);\n}\n```\n\n#Send Token Every Request\n\n```java\n   RequestInterceptor requestInterceptor = new RequestInterceptor() {\n        @Override\n        public void intercept(RequestFacade request) {\n            request.addHeader(\"Authorization\", \"Bearer\" + token);\n            request.addHeader(\"User-Agent\", \"Android\");\n        }\n    };\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fretrofit.oauth-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreviousdeveloper%2Fretrofit.oauth-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fretrofit.oauth-2/lists"}