Skip to content

v3.9.0

Compare
Choose a tag to compare
@fofiuiancu fofiuiancu released this 06 Feb 13:54
· 40 commits to master since this release
650b910

Added

  • ImportToken to Session Specification Builder and a ImportTokenBuilder

Requested with

ttl := time.Hour * 24 * 30
importToken, err := create.NewImportTokenBuilder().
	WithTTL(int(ttl.Seconds())).
	Build()
if err != nil {
	return nil, err
}

sessionSpec, err = create.NewSessionSpecificationBuilder().
		WithClientSessionTokenTTL(6000).
		WithResourcesTTL(900000).
		WithUserTrackingID("some-tracking-id").
		WithSDKConfig(sdkConfig).
		WithIdentityProfileRequirements(identityProfile).
		WithCreateIdentityProfilePreview(true).
		WithSubject(subject).
                WithImportToken(importToken).
		Build()
  • ImportTokenResponse to IDV GetSessionResult:
getSessionResult, err := client.GetSession(sessionId)
if err != nil {
        return err
}
importTokenResponse := getSessionResult.ImportTokenResponse

Example available when running the idv example project at https://localhost:8080/dbs