{"id":22620743,"url":"https://github.com/michaelconan/uipath-googleservicetoken","last_synced_at":"2025-03-29T02:13:53.051Z","repository":{"id":189967554,"uuid":"681677442","full_name":"michaelconan/uipath-googleservicetoken","owner":"michaelconan","description":"Reusable UiPath components to authenticate with Google using Service Accounts for API operations","archived":false,"fork":false,"pushed_at":"2023-10-07T15:24:52.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T12:17:43.140Z","etag":null,"topics":["uipath"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelconan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-22T14:15:49.000Z","updated_at":"2024-03-28T23:43:23.000Z","dependencies_parsed_at":"2023-08-22T21:02:25.460Z","dependency_job_id":null,"html_url":"https://github.com/michaelconan/uipath-googleservicetoken","commit_stats":null,"previous_names":["michaelconan/uipath-googleservicetoken"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelconan%2Fuipath-googleservicetoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelconan%2Fuipath-googleservicetoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelconan%2Fuipath-googleservicetoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelconan%2Fuipath-googleservicetoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelconan","download_url":"https://codeload.github.com/michaelconan/uipath-googleservicetoken/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126737,"owners_count":20727595,"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":["uipath"],"created_at":"2024-12-08T22:15:14.099Z","updated_at":"2025-03-29T02:13:53.033Z","avatar_url":"https://github.com/michaelconan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoogleServiceAuth\n\nReusable activities to support authentication to Google APIs using service account context.\n\nDeveloped as a [custom Code activity for UiPath Studio](https://docs.uipath.com/developer/docs/creating-activities-with-code).\nSteps:\n- Install Visual Studio with Desktop development tools\n\t- Install .NET framework 4.6.1\n- Create C# class library\n\t- Target framework options did not show 4.6.1. Created library then modified `.csproj` framework manually.\n- Write activity logic following template from UiPath documentation\n- Build solution in Visual Studio to create `.dll` file\n- Create `.nupkg` using [Visual Studio and the Nuget CLI](https://learn.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework)\n\t- Update project properties to include \"Activities\" within the ID\n\t- Create `.nuspec` file using nuget CLI, then `.nupkg` file\n- Load created `.nupkg` to Orchestrator or to local packages folder (`C:\\Program Files\\UiPath\\Studio\\Packages`)\n- Install package from package manager\n\n## Alternatives\nRather than using this custom C# CodeActivity, a raw access token can be generated using `gcloud` ([docs](https://cloud.google.com/sdk/gcloud/reference/auth/print-access-token)) via PowerShell or Command Line:\n\n```shell\ngcloud auth activate-service-account SERVICE_ACCOUNT@DOMAIN.COM --key-file=/path/key.json --project=PROJECT_ID\ngcloud auth print-access-token --scopes=SCOPES\n```\n\n_NOTE: The `--scopes` flag for `print-access-token` is not currently listed in the public documentation (as of October 2023), but is supported_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelconan%2Fuipath-googleservicetoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelconan%2Fuipath-googleservicetoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelconan%2Fuipath-googleservicetoken/lists"}