Skip to content

Commit

Permalink
feat: Update to latest SDK versions
Browse files Browse the repository at this point in the history
Update to 4.3.0 on iOS, and 4.2.0 on Android
See https://curity.io/docs/haapi-ios-sdk/latest/ and https://curity.io/docs/haapi-android-sdk/latest/ for the changes
  • Loading branch information
daniellindau committed Nov 25, 2024
1 parent 3d36422 commit dd2f630
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def safeExtGet(prop, fallback) {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.22"
implementation "se.curity.identityserver:identityserver.haapi.android.sdk:4.1.0"
implementation "se.curity.identityserver:identityserver.haapi.android.sdk:4.2.1"
implementation "com.google.code.gson:gson:2.10"
implementation "com.facebook.react:react-android:${safeExtGet('reactNativeVersion', '+')}"
implementation "androidx.credentials:credentials:1.2.2"
Expand Down
6 changes: 4 additions & 2 deletions ios/HaapiModule/ConfigurationHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ConfigurationHelper {
let urlSession = URLSession(configuration: URLSessionConfiguration.haapi,
delegate: validateTlsCertificate ? nil : TrustAllCertsDelegate(),
delegateQueue: nil)
let boundedTokenConfiguration = BoundedTokenConfiguration()

return HaapiConfiguration(name: getStringOrDefault(data: data, configKey: "configurationName", defaultString: "HaapiModule"),
clientId: try getStringOrThrow(data: data, configKey: "clientId"),
Expand All @@ -41,7 +42,8 @@ class ConfigurationHelper {
httpHeadersProvider: nil,
authorizationParametersProvider: { () -> OAuthAuthorizationParameters in OAuthAuthorizationParameters(scopes: scope, acrValues: acrValues) },
isAutoRedirect: true,
urlSession: urlSession)
urlSession: urlSession,
tokenBoundConfiguration: boundedTokenConfiguration)

}

Expand All @@ -66,4 +68,4 @@ class ConfigurationHelper {
.split(separator: " ")
.map { String($0) }
}
}
}
4 changes: 2 additions & 2 deletions react-native-haapi-module.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency "IdsvrHaapiSdk", "4.1.4"
end
s.dependency "IdsvrHaapiSdk", "4.3.0"
end

0 comments on commit dd2f630

Please sign in to comment.