{"id":21900967,"url":"https://github.com/citrix/citrix-unified-workspace-api-native-example","last_synced_at":"2026-04-10T23:04:02.359Z","repository":{"id":232759258,"uuid":"681267575","full_name":"citrix/citrix-unified-workspace-api-native-example","owner":"citrix","description":"Sample native application for the Citrix(R) Unified Workspace API","archived":false,"fork":false,"pushed_at":"2024-05-10T09:01:53.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T06:43:02.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer-docs.citrix.com/en-us/workspace-platform/unified-workspace-api-preview/overview","language":"C#","has_issues":false,"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/citrix.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-21T16:29:28.000Z","updated_at":"2024-05-10T09:01:44.000Z","dependencies_parsed_at":"2024-05-09T17:31:38.792Z","dependency_job_id":"4d22fd8b-19b1-41e5-a31a-95f35862ee4b","html_url":"https://github.com/citrix/citrix-unified-workspace-api-native-example","commit_stats":null,"previous_names":["citrix/citrix-unified-workspace-api-native-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-unified-workspace-api-native-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-unified-workspace-api-native-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-unified-workspace-api-native-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/citrix%2Fcitrix-unified-workspace-api-native-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/citrix","download_url":"https://codeload.github.com/citrix/citrix-unified-workspace-api-native-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913314,"owners_count":20530817,"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-28T15:11:42.840Z","updated_at":"2026-04-10T23:04:02.351Z","avatar_url":"https://github.com/citrix.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Citrix(R) Unified Workspace API - Native Client sample built with Windows Presentation Foundation (WPF)\n\nThis is a simple implementation of a Windows Native Client that shows how to interact with the Citrix(R) Unified Workspace APIs to build a small and functional application. It is written using C#'s [WPF framework](https://github.com/dotnet/wpf), with a simple UI to facilitate the actions required to login and begin calling Workspace APIs.\n\nIt uses the provided sample Token Management Service ([TMS](./Citrix.UnifiedApi.Test.TMS/README.md)) as it's backend to handle OAuth tokens, and once its received a token calls the Workspace APIs.\n\nThis is purely an example and shouldn't be used for real production services.\n\n## Sample site preview\n\n![Homepage](./screenshots/Resources.PNG)\n\n## Prerequisites\n\n- You have either a Private or Public Workspace OAuth Client\n- You will be running the example code in Visual Studio and can run [.NET 10.0](https://dotnet.microsoft.com/en-us/download/dotnet/10.0)\n- You have the [Citrix Workspace App](https://www.citrix.com/downloads/workspace-app/windows/workspace-app-for-windows-latest.html) installed\n\n## Getting Started\n\n### Run the provided sample Token Management Service (TMS)\n\nTo run this example, you must first be running the TMS.\n\nYou will need to configure the TMS Frontend settings in the `appsettings.Development.json` file as follows:\n\n```json\n\"FrontEnd\": {\n    \"FrontEndRedirectUrl\": \"https://localhost:3000/\",\n    \"FrontEndCorsOrigin\": \"https://localhost:3000\"\n}\n```\n\nThis is because the Application is configured to run on `https://localhost:3000`.\n\nBefore running the Native example, you will need to set the Application ID in the [app.config](./Citrix.UnifiedApi.Test.NativeClientWpf/App.config) to be the application ID for the OAuth client you have created in the Citrix Cloud Admin Console.\n\n## Actions covered in this example\n\n- Login / Logout\n- In-memory storage of access token\n- Refreshing of access token using a Token Management Service (TMS)\n- Enumeration of resources for a user\n  - If you have web or SaaS apps present in the store you're enumerating from, they will show in the list, but will not be able to be launched\n- Launching of an ICA resource\n\n## Running the example\n\n- Recommend using an Incognito browser to avoid cookie and cache causing problems.\n\nOnce started, you should be directed to the login page:\n\n![Login Screen](./screenshots/Login.PNG)\n\nAt this point, enter your customer.cloud.com address and hit 'login'.\n\nIt should direct you to the standard login flow:\n\n![Example login flow](./screenshots/Login_2.PNG)\n\nAfter entering your login details it will take you to the empty home page and say 'Authenticated':\n\n![Authenticated](./screenshots/Authenticated.PNG)\n\nClicking on 'Enumerate' should call Workspace APIs to get your resources:\n\n![Homepage](./screenshots/Resources.PNG)\n\nClicking on a resources 'Launch' button should initiate a launch:\n\n![Start Launch](./screenshots/Launching.PNG)\n\n![Launch success](./screenshots/Launched.PNG)\n\n## Attributions\n\nThe code in this repository makes use of the following NuGet packages:\n\n- Microsoft.Web.WebView2 (https://learn.microsoft.com/en-us/microsoft-edge/webview2/)\n\n## License\n\nCopyright \u0026copy; 2026. Cloud Software Group, Inc. All Rights Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrix%2Fcitrix-unified-workspace-api-native-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitrix%2Fcitrix-unified-workspace-api-native-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrix%2Fcitrix-unified-workspace-api-native-example/lists"}