{"id":13635266,"url":"https://github.com/googleapis/google-auth-library-swift","last_synced_at":"2025-04-06T16:12:11.965Z","repository":{"id":39908264,"uuid":"91846443","full_name":"googleapis/google-auth-library-swift","owner":"googleapis","description":"Auth client library for Swift command-line tools and cloud services. Supports OAuth1, OAuth2, and Google Application Default Credentials.","archived":false,"fork":false,"pushed_at":"2024-08-05T19:35:11.000Z","size":201,"stargazers_count":136,"open_issues_count":17,"forks_count":63,"subscribers_count":51,"default_branch":"main","last_synced_at":"2025-03-30T13:09:08.218Z","etag":null,"topics":["experimental"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-19T21:22:41.000Z","updated_at":"2025-03-05T20:47:50.000Z","dependencies_parsed_at":"2023-02-17T23:00:30.197Z","dependency_job_id":"732c3e53-4547-40de-a5eb-f236d3d754aa","html_url":"https://github.com/googleapis/google-auth-library-swift","commit_stats":{"total_commits":84,"total_committers":21,"mean_commits":4.0,"dds":"0.38095238095238093","last_synced_commit":"1c57f5d95d6a183f7e4c44e4df338a751ad7128e"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-auth-library-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-auth-library-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-auth-library-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-auth-library-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/google-auth-library-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509225,"owners_count":20950232,"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":["experimental"],"created_at":"2024-08-02T00:00:43.190Z","updated_at":"2025-04-06T16:12:11.946Z","avatar_url":"https://github.com/googleapis.png","language":"Swift","funding_links":[],"categories":["Authentication","Swift"],"sub_categories":[],"readme":"[![Swift Actions Status](https://github.com/googleapis/google-auth-library-swift/workflows/Swift/badge.svg)](https://github.com/googleapis/google-auth-library-swift/actions)\n\n# Auth Library for Swift\n\nThis project contains Swift packages that can be used to write command-line\ntools and cloud services that use OAuth to authenticate and authorize access\nto remote services.\n\nCurrently these packages support OAuth1 and OAuth2.\nThey are designed to work on macOS systems and on Linux systems that are\nrunning in the [Google Cloud](https://cloud.google.com).\n\n* On macOS systems, OAuth tokens can be obtained using the locally-installed\nbrowser and a local web server that is automatically run in the\ncommand-line client. \n\n* On Linux systems, OAuth tokens can be obtained automatically from the\n[Google Cloud Metadata Service](https://cloud.google.com/compute/docs/storing-retrieving-metadata).\n\n* On both Linux and macOS systems, OAuth tokens can be obtained automatically for\n[Google Cloud Service Accounts](https://cloud.google.com/iam/docs/understanding-service-accounts).\n\n## Usage and Examples\n\n[Sources/Examples](Sources/Examples) \ncontains examples that illustrate OAuth1 and OAuth2 signin for\nvarious services. Each requires valid application credentials to run.\nSee the various service providers for details.\n\nThe BrowserTokenProvider classes use a local web server to implement\n\"three-legged OAuth\" signin in which users grant permission in a browser\nthat a provider's server redirects to the client server with a code.\nThese providers look for OAuth configuration information in \"credentials\"\nYAML files that are expected to be in `$HOME/.credentials`. Sample credentials\nfiles are in [credentials](credentials)\nand include client IDs, client secrets, and OAuth service URLs.\nWhen OAuth services require registered callback URLs, these should be\nset to `http://localhost:8080/SERVICE/callback` where `SERVICE` is \nspecified in the corresponding credentials YAML file. The temporary \nweb server runs locally on port 8080.\n\n## Credits\n\n- The local web server is built using [swift-nio/http](https://github.com/apple/swift-nio).\n- HMAC and SHA1 hashing is performed using [CryptoSwift](https://github.com/krzyzanowskim/CryptoSwift).\n- RSA signing of service account JWT tokens uses [BigInt](https://github.com/attaswift/BigInt).\n\n## Disclaimer\n\nThis is work in progress toward great server-side Swift software. Please take care\nwhen using this in production projects: always refer to a tagged version and \nbe aware that interfaces may change in future releases.\n\n## Contributing\n\nWe'd love to collaborate on this. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n## Copyright\n\nCopyright 2019, Google LLC.\n\n## License\n\nReleased under the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-auth-library-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fgoogle-auth-library-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-auth-library-swift/lists"}