{"id":16679795,"url":"https://github.com/tsloughter/augle","last_synced_at":"2025-04-09T22:32:52.344Z","repository":{"id":10422015,"uuid":"12582273","full_name":"tsloughter/augle","owner":"tsloughter","description":"Auth + Google = Augle","archived":false,"fork":false,"pushed_at":"2019-12-06T17:38:12.000Z","size":175,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T19:08:47.263Z","etag":null,"topics":["authentication","erlang","gcp","google-cloud","google-cloud-platform"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/tsloughter.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":"2013-09-04T04:58:43.000Z","updated_at":"2024-12-10T10:15:57.000Z","dependencies_parsed_at":"2022-09-17T04:42:16.295Z","dependency_job_id":null,"html_url":"https://github.com/tsloughter/augle","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/tsloughter%2Faugle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Faugle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Faugle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsloughter%2Faugle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsloughter","download_url":"https://codeload.github.com/tsloughter/augle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123916,"owners_count":21051550,"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":["authentication","erlang","gcp","google-cloud","google-cloud-platform"],"created_at":"2024-10-12T13:37:34.177Z","updated_at":"2025-04-09T22:32:52.312Z","avatar_url":"https://github.com/tsloughter.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Augle\n\nAuth + Google = Augle\n\n---\n\n### Usage\n\nThis library is specifcally for service accounts for Google Cloud. It accepts a few different forms of fetching the access tokens for a service account:\n\n* `default`: This will work through the order defined in [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).\n* `{file, Path}`: Acts the same as if you have the os variable `GOOGLE_APPLICATION_CREDENTIALS` defined to the `Path`.\n* `{file, Path, Scopes}`: Acts the same as above but supports the inclusion of scopes you need credentials for.\n* `{metadata, ServiceAccount}`: If all else fails under `default` it will try this method with `\u003c\u003c\"default\"\u003e\u003e` a the `ServiceAccount`. You can instead use it directly and use different service accounts. It must be running on a Google cloud instance (including through AppEngine or Container Engine) or when developing with the [GCE Metadata Emulator](https://medium.com/google-cloud/google-compute-engine-metadata-server-emulator-fe0fb1e5a8b5).\n\nThere is a cache that is checked first, keyed on how the credentials were fetched, that sets a timer that sends a message to the cache process to refresh the credentials 10 seconds before they expire. Not expected to work well if you are storing a shit load of service account credentials in the same cache...\n\nSimply add to your `rebar.config` deps list:\n\n```\n{deps, [augle]}.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsloughter%2Faugle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsloughter%2Faugle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsloughter%2Faugle/lists"}