SAP / gigya-swift-sdk

SAP CDC (Gigya) swift sdk for mobile
Apache License 2.0
25 stars 17 forks source link

Custom Button in Login Screenset is not showing #46

Closed Aaron98990 closed 2 years ago

Aaron98990 commented 2 years ago

In the screenset, we are able to get the screenset to show up but it is missing the SSO button implemented as shown in the image below. We are able to get this to work on the WebSDK version but we are missing the custom button in ios SDK. Do you have any ideas?

public func showScreenSet(with name: String, viewController: UIViewController, params: [String: Any] = [:], completion: @escaping (GigyaPluginEvent<T>) -> Void)

let params = ["screenSet": "SCREENSETNAME", "idpName": "IDPNAME", "type": "saml", "position": "1", "deviceType": "mobile", "providerName": "PROVIDER NAME", "startScreen": "SCREENNAME", "containerID": "pluginContainer"]

Mobile SDK:

image

For reference, this is how it is done in web sdk which works and shows the custom button and the screenset correctly:

gigya.accounts.showScreenSet({
  containerID:'login',
  screenSet: 'fill in',
  startScreen: 'fill in',
  customButtons: [{
  'type': 'saml',
  'providerName': 'fill in',
  'idpName': 'fill in',
  'lastLoginIconURL': 'URL',
  'position': '1'}],
  });
sagishm commented 2 years ago

Hi, Please open a support case using https://developers.gigya.com/display/GD/Opening+A+Support+Incident and provide all the relevant data and crash reports in order for our team to investigate this issue.

Aaron98990 commented 2 years ago

Thank you! This resolved our issue.

Custom Buttons:

Custom Buttons work using the Swift SDK. But, params must be formated like this in the Swift showScreenSet call.

["screenSet": "", "startScreen": "", "deviceType": "", "containerID": "", "customButtons": [{"idpName": "", "providerName": "", "type": "saml", "position": "1"}]

Add these sites to the Trusted URLs: