Skip to content

Commit 9254082

Browse files
committed
Preparing version update 1.0.6
1 parent e1aee4f commit 9254082

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.0.6
2+
1.0.6
3+
4+
* Added "getAuthCode" interface used to obtain a session exchange code with WebSDK.
5+
16
# 1.0.5
27
1.0.5
38

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,25 @@ To initiate the SSO request flow, run the following snippet.
263263
When using mobile SSO (single sign-on using the central login page), logging out using the SDK's logout method will only log the user out of the current API key used.
264264
The user will not be logged out of the other group sites.
265265

266+
## Session Exchange Between Mobile & WebView
267+
268+
Applications (mobile/web) within the same site group are now able to share a session from the mobile application to a web page running the JS SDK.
269+
270+
Follow these steps to allow session exchange:
271+
272+
1. Use the “getAuthCode” interface. This call will provide you with the required code that the web page will require for the exchange.
273+
```dart
274+
final String? result = await widget.sdk.getAuthCode();
275+
```
276+
277+
2. Add these URL parameters to your hosted page/website URL using the provided code:
278+
*** https://page-url?authCode=code&gig_actions=sso.login ***
279+
280+
3. Make sure that the WebView element you are using to open the URL has JavaScript enabled.
281+
282+
4. Once the page is loaded, the JS SDK will exchange the token provided for a valid session.
283+
284+
266285
## FIDO/WebAuthn Authentication
267286
FIDO is a passwordless authentication method that allows password-only logins to be replaced with secure and fast login experiences across websites and apps.
268287

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: gigya_flutter_plugin_example
22
description: Demonstrates how to use the gigya_flutter_plugin plugin.
3-
version: 1.0.5
3+
version: 1.0.6
44
homepage: https://www.sap.com
55
publish_to: none
66

ios/Classes/GigyaSdkWrapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class GigyaSdkWrapper<T: GigyaAccountProtocol> :GigyaInstanceProtocol {
5050

5151
init(accountSchema: T.Type) {
5252
// Initializing the Gigya SDK instance.
53-
GigyaDefinitions.versionPrefix = "flutter_1.0.5_"
53+
GigyaDefinitions.versionPrefix = "flutter_1.0.6_"
5454
sdk = Gigya.sharedInstance(accountSchema)
5555
GigyaAuth.shared.register(scheme: accountSchema)
5656
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: gigya_flutter_plugin
22
description: SAP Gigya Flutter plugin
3-
version: 1.0.5
3+
version: 1.0.6
44
homepage: https://github.com/SAP/gigya-flutter-plugin
55

66
environment:

0 commit comments

Comments
 (0)