{"id":20082407,"url":"https://github.com/googlesamples/oauth-apps-for-windows","last_synced_at":"2025-03-13T09:09:29.913Z","repository":{"id":55016411,"uuid":"62248337","full_name":"googlesamples/oauth-apps-for-windows","owner":"googlesamples","description":"OAuth for Apps: Samples for Windows","archived":false,"fork":false,"pushed_at":"2024-01-06T16:42:14.000Z","size":71,"stargazers_count":485,"open_issues_count":10,"forks_count":188,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-01T18:09:09.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developers.google.com/identity/protocols/OAuth2InstalledApp","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlesamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-29T18:24:11.000Z","updated_at":"2025-02-15T21:47:43.000Z","dependencies_parsed_at":"2024-11-13T21:01:03.346Z","dependency_job_id":null,"html_url":"https://github.com/googlesamples/oauth-apps-for-windows","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/googlesamples%2Foauth-apps-for-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Foauth-apps-for-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Foauth-apps-for-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Foauth-apps-for-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlesamples","download_url":"https://codeload.github.com/googlesamples/oauth-apps-for-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374314,"owners_count":20280660,"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-11-13T15:43:16.605Z","updated_at":"2025-03-13T09:09:29.892Z","avatar_url":"https://github.com/googlesamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"OAuth for Apps: Samples for Windows\n============\n\nThis repository contains samples for doing OAuth 2.0 to Google for Windows apps,\nincluding universal apps, traditional desktop apps, and CLI tools.\n\nIntroduction\n------------\n\nWhen doing an OAuth 2.0 Authorization flow to Google in a native application, it\nis important to follow \n[best practices](https://tools.ietf.org/html/rfc8252), \nwhich require using the browser (and not an embedded browser).\n\nThese samples show how to complete an OAuth 2.0 Authorization request in a\ntraditional app, where a loopback redirect is used to received the code, and in\na universal app where a URI scheme is used for the same.\n\n\u003e **Note**  \n\u003e When using Google APIs, the [Google.Apis.Auth](https://www.nuget.org/packages/Google.Apis.Auth/)\n\u003e package provides an OAuth2 implementation which integrates with Google Cloud Platform.\n\nSamples\n-------\n\n[OAuthUniversalApp](OAuthUniversalApp/README.md) - Universal Windows Platform \n(UWP) sample app\n\n[OAuthDesktopApp](OAuthDesktopApp/README.md) - Traditional desktop  \napplication sample (using WPF).\n\n[OAuthConsoleApp](OAuthConsoleApp/README.md) - Command Line Interface (CLI)\nconsole application sample.\n\nAll samples achieve the same end result of authenticating the user in the\nsystem browser, but with environment-specific optimizations.\n\nGoogle Documentation\n--------------------\n\nThe protocols referenced in this sample are documented here:\n\n- [OAuth 2.0](https://developers.google.com/identity/protocols/OAuth2)\n- [Using OAuth 2.0 for Mobile and Desktop Applications](https://developers.google.com/identity/protocols/OAuth2InstalledApp)\n\nSupport\n-------\n\nIf you have a question related to these samples, or Google OAuth in general,\nplease ask on Stack Overflow with the `google-oauth` tag\n https://stackoverflow.com/questions/tagged/google-oauth\n\nIf you've found an error in this sample, please file an issue:\nhttps://github.com/googlesamples/oauth-apps-for-windows/issues\n\nPatches are encouraged, and may be submitted by forking this project and\nsubmitting a pull request through GitHub.\n\nAdvanced Reading\n----------------\n\nThe protocols and best practices used and implemented in these samples are\ndefined by RFCs. These expert-level documents detail how the protocols work,\nand explain the reasoning behind many decisions, such as why we send a\n`code_challenge` on the Authorization Request for a native app.\n\n- [RFC 8252: OAuth 2.0 for Native Apps](https://tools.ietf.org/html/rfc8252)\n- [RFC 6749: OAuth 2.0](https://tools.ietf.org/html/rfc6749)\n- [RFC 6750: OAuth 2.0 Bearer Token Usage](https://tools.ietf.org/html/rfc6750)\n- [RFC 6819: OAuth 2.0 Threat Model and Security Considerations](https://tools.ietf.org/html/rfc6819)\n- [RFC 7636: OAuth 2.0 PKCE](https://tools.ietf.org/html/rfc7636)\n\nLicense\n-------\n\nCopyright 2016 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglesamples%2Foauth-apps-for-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglesamples%2Foauth-apps-for-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglesamples%2Foauth-apps-for-windows/lists"}