This SDK provides a simple interface to features offered by the IAM services of HSDP.
The output of the project is a libary that you can import as a package in your xcode environment.
The library dependency can be included in your projects by adding https://github.com/philips-software/swift-hsdp-sdk as package collection.
import SwiftHsdpSdk
let iam = IamOAuth2(region: .EuWest, environment: .Prod, clientId: "public-client", clientSecret: "")
Task {
do {
let token = try await iam.login(username: "martijn.van.welie@philips.com", password: "WishYoueWereHere");
print("got \(token.accessToken)")
let introspect = try await iam.introspect()
print("introspect: \(introspect)")
let refreshedToken = try await iam.refresh(iam.token)
print("got \(refreshedToken)")
try await iam.revoke()
} catch {
print("error: \(error)")
}}
The current implementation covers only a subset of HSDP APIs. Additional functionality is built as needed.
- IAM Identity and Access Management (IAM)
- Access Management
- Federation
- OAuth2
- OAuth2 Authorization
- OAuth2 Token Revocation
- OpenID Connect UserInfo
- Introspect
- Session (refresh, terminate)
- OpenID (configuration, JWKS)
- Access Management
Other services can follow later.
- Implement more HSDP API calls
- If you have an issue: report it on the issue tracker
Matthijs van Marion (matthijs.van.marion@philips.com)
Martijn van Welie (martijn.van.welie@philips.com)
See LICENSE.md.