diff --git a/_examples/idv/handlers.session.go b/_examples/idv/handlers.session.go index a9e30e56..2abe7d27 100644 --- a/_examples/idv/handlers.session.go +++ b/_examples/idv/handlers.session.go @@ -223,3 +223,11 @@ func showPrivacyPolicyPage(c *gin.Context) { render(c, gin.H{}, "privacy.html") return } + +func showErrorPage(c *gin.Context) { + render(c, gin.H{ + "ErrorTitle": "Error Code", + "ErrorMessage": c.Request.URL.Query().Get("yotiErrorCode")}, + "error.html") + return +} diff --git a/_examples/idv/models.sessionspec.go b/_examples/idv/models.sessionspec.go index da365a28..6f7c4748 100644 --- a/_examples/idv/models.sessionspec.go +++ b/_examples/idv/models.sessionspec.go @@ -98,6 +98,7 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) { WithErrorUrl("https://localhost:8080/error"). WithPrivacyPolicyUrl("https://localhost:8080/privacy-policy"). WithIdDocumentTextExtractionGenericAttempts(2). + WithAllowHandOff(true). Build() if err != nil { return nil, err @@ -158,7 +159,7 @@ func buildSessionSpec() (sessionSpec *create.SessionSpecification, err error) { sessionSpec, err = create.NewSessionSpecificationBuilder(). WithClientSessionTokenTTL(600). - WithResourcesTTL(86400). + WithResourcesTTL(87000). WithUserTrackingID("some-tracking-id"). WithRequestedCheck(faceMatchCheck). WithRequestedCheck(documentAuthenticityCheck). @@ -203,7 +204,8 @@ func buildDBSSessionSpec() (sessionSpec *create.SessionSpecification, err error) identityProfile := []byte(`{ "trust_framework": "UK_TFIDA", "scheme": { - "type": "RTW" + "type": "DBS", + "objective": "BASIC" } }`) @@ -221,7 +223,7 @@ func buildDBSSessionSpec() (sessionSpec *create.SessionSpecification, err error) sessionSpec, err = create.NewSessionSpecificationBuilder(). WithClientSessionTokenTTL(600). - WithResourcesTTL(86400). + WithResourcesTTL(87000). WithUserTrackingID("some-tracking-id"). WithSDKConfig(sdkConfig). WithIdentityProfileRequirements(identityProfile). diff --git a/_examples/idv/routes.go b/_examples/idv/routes.go index 9140a3d3..9112caa0 100644 --- a/_examples/idv/routes.go +++ b/_examples/idv/routes.go @@ -13,4 +13,5 @@ func initializeRoutes() { router.GET("/success", showSuccessPage) router.GET("/media", getMedia) router.GET("/privacy-policy", showPrivacyPolicyPage) + router.GET("/error", showErrorPage) } diff --git a/_examples/profile/.env.example b/_examples/profile/.env.example index 53041900..3bd56f8d 100644 --- a/_examples/profile/.env.example +++ b/_examples/profile/.env.example @@ -1,3 +1,5 @@ YOTI_SCENARIO_ID= YOTI_CLIENT_SDK_ID= YOTI_KEY_FILE_PATH= +# Optional configuration +YOTI_API_URL= \ No newline at end of file