{"id":20801918,"url":"https://github.com/philips-software/swift-hsdp-sdk","last_synced_at":"2025-10-08T16:17:49.689Z","repository":{"id":96542383,"uuid":"534111602","full_name":"philips-software/swift-hsdp-sdk","owner":"philips-software","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-24T09:29:09.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T02:47:12.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"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/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2022-09-08T08:04:38.000Z","updated_at":"2022-11-23T09:35:03.000Z","dependencies_parsed_at":"2023-04-04T06:17:02.076Z","dependency_job_id":null,"html_url":"https://github.com/philips-software/swift-hsdp-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/philips-software/swift-hsdp-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fswift-hsdp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fswift-hsdp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fswift-hsdp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fswift-hsdp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/swift-hsdp-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fswift-hsdp-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278974337,"owners_count":26078400,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-17T18:26:10.070Z","updated_at":"2025-10-08T16:17:49.658Z","avatar_url":"https://github.com/philips-software.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-hsdp-sdk\n\n[![Swift](https://github.com/philips-software/swift-hsdp-sdk/actions/workflows/swift.yaml/badge.svg?branch=main)](https://github.com/philips-software/swift-hsdp-sdk/actions/workflows/swift.yaml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis SDK provides a simple interface to features offered by the IAM services of HSDP.\n\nThe output of the project is a libary that you can import as a package in your xcode environment.\n\n## Table of contents\n\n- [Using in your projects](#using-in-your-projects)\n- [Basic usage](#basic-usage)\n- [Supported APIs](#supported-apis)\n- [Todo](#todo)\n- [Issues](#issues)\n- [Contact / Getting help](#contact--geting-help)\n- [License](#license)\n\n\n## Using in your projects\n\nThe library dependency can be included in your projects by adding https://github.com/philips-software/swift-hsdp-sdk as package collection.\n\n## Basic Usage\n\n```\nimport SwiftHsdpSdk\n\n    let iam = IamOAuth2(region: .EuWest, environment: .Prod, clientId: \"public-client\", clientSecret: \"\")\n\nTask {\n        do {\n            let token = try await iam.login(username: \"martijn.van.welie@philips.com\", password: \"WishYoueWereHere\");\n            print(\"got \\(token.accessToken)\")\n            \n            let introspect = try await iam.introspect()\n            print(\"introspect: \\(introspect)\")\n            \n            let refreshedToken = try await iam.refresh(iam.token)\n            print(\"got \\(refreshedToken)\")\n            \n            try await iam.revoke()\n        } catch {\n            print(\"error: \\(error)\")\n        }}\n\n\n```\n\n## Supported APIs\n\nThe current implementation covers only a subset of HSDP APIs. Additional functionality is built as needed.\n\n- [x] IAM Identity and Access Management (IAM)\n  - [ ] Access Management\n    - [ ] Federation\n    - [x] OAuth2\n      - [x] OAuth2 Authorization\n      - [x] OAuth2 Token Revocation\n      - [ ] OpenID Connect UserInfo\n      - [x] Introspect\n      - [x] Session (refresh, terminate)\n      - [ ] OpenID (configuration, JWKS)\n\n\nOther services can follow later.\n\n\n## Todo\n\n- Implement more HSDP API calls\n\n\n## Issues\n\n- If you have an issue: report it on the [issue tracker](https://github.com/philips-software/swift-hsdp-sdk/issues)\n\n\n## Contact / Getting help\n\nMatthijs van Marion (\u003cmatthijs.van.marion@philips.com\u003e) \\\nMartijn van Welie (\u003cmartijn.van.welie@philips.com\u003e)\n\n## License\n\nSee [LICENSE.md](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fswift-hsdp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Fswift-hsdp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fswift-hsdp-sdk/lists"}