{"id":24764451,"url":"https://github.com/seamapi/visionline-integration-example-go","last_synced_at":"2025-03-23T16:28:04.638Z","repository":{"id":213612951,"uuid":"734145838","full_name":"seamapi/visionline-integration-example-go","owner":"seamapi","description":"An example of a Go integration with Assa Abloy Visionline using the Seam API","archived":false,"fork":false,"pushed_at":"2024-02-07T18:51:19.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-19T09:42:58.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seamapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-21T01:33:57.000Z","updated_at":"2023-12-21T22:35:04.000Z","dependencies_parsed_at":"2023-12-22T00:58:33.274Z","dependency_job_id":"a23e6dbf-2e8e-47e6-ad9f-984f6543878f","html_url":"https://github.com/seamapi/visionline-integration-example-go","commit_stats":null,"previous_names":["seamapi/visionline-integration-example-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fvisionline-integration-example-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fvisionline-integration-example-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fvisionline-integration-example-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fvisionline-integration-example-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seamapi","download_url":"https://codeload.github.com/seamapi/visionline-integration-example-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245130174,"owners_count":20565608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-28T22:31:19.367Z","updated_at":"2025-03-23T16:28:04.617Z","avatar_url":"https://github.com/seamapi.png","language":"Go","readme":"# Visionline Integration Example Go\n\nTo run the steps you just need have Go 1.21.4 or later installed and run `go run .` inside of any step folder.\n\n## Step One: Create Webviews (One Time Only)\n\nTo connect to visionline, you must create a 3 webviews, each for one of the services you're connecting:\n* Seam Bridge (to connect you to the Visionline Network)\n* Assa Abloy Credential Service\n* On-Prem Visionline\n\nEach webview has a URL, you go to this URL to log in!\n\nHere are the commands, after executing each one, open the webview and fill\nin the sample credentials:\n\n- `seam connect-webviews create --accepted-providers seam_bridge`\n  - Pairing Code: `1234`\n  - Name: `My Network`\n- `seam connect-webviews create --accepted-providers assa_abloy_credential_service`\n  - Username: `jane`\n  - Password: `1234`\n- `seam connect-webviews create --accepted-providers visionline`\n  - Username: `jane`\n  - Password: `1234`\n  - Lan IP: `192.168.1.100`\n\n---\n\n\u003e All steps beyond this point you repeat for each incoming Guest\n\n## Step Two: Create a User Identity to Represent the Guest\n\n- `seam user-identities create --email-address jane@example.com`\n\n## Step Three: Enroll the User Identity to allow Phones to Sync\n\n- `seam user-identities enrollment-automations launch`\n  - For `user_identity_id` select `jane@example.com`\n  - For `credential_manager_acs_system_id` select \"Assa Abloy Credential Service\"\n  - For `create_credential_manager_user` select `true`\n\n\n## Step Four: Create the Visionline User\n\n- `seam acs users create`\n  - For `acs_system_id` select `Visionline`\n  - For `user_identity_id` select `jane@example.com`\n  - For `full_name` enter `Jane Doe` (or anything, but cannot be blank)\n  - Our command line doesn't support editing the `access_schedule` at the\n    moment, but normally you would want to set this to the duration of the\n    Guest's stay\n\nNow we create a Visionline User and connect it to our User Identity.\n\n## Step Five: Assign User Access\n\n\u003e You can see all your ACS credentials with `seam acs entrances list`, entrances are typically\n\u003e named like \"Room 301\" or \"Front Entrance\", but in our demo data it's an empty string (sorry)\n\n- `seam acs entrances grant-access`\n  - For `acs_user_id` select `Visionline` and `jane@example.com`\n  - For `acs_entrance_id` select any entrance\n\n## Step Six: Create the Visionline Credential\n\nA `multi_phone_sync_credential` will automatically sync with all phones owned by a user identity.\n\n- `seam acs credentials create`\n  - For `acs_user_id` select `Visionline` then `jane@example.com`\n  - For `access_method` select `mobile_key`\n  - For `is_multi_phone_sync_credential` select `true`\n  - For `card_format` select `visionline_metadata`\n  - For `starts_at` and `ends_at` select the valid window of the credential\n\n## Connecting the Guest to their User with a Phone\n\nThere are 3 ways to connect a user to their phone, we're going to go over the Mobile SDK/you\nbuild a custom app version here, but it's even easier with Seam Passport.\n\n### Step Seven: Create a Client Session when a User Logs In to Your App\n\nUse `seam client_sessions create --user_identity_id=...` to create a a client session for this\nuser.\n\nNow you must give the client session to the SeamDeviceController in your app!\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fvisionline-integration-example-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseamapi%2Fvisionline-integration-example-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fvisionline-integration-example-go/lists"}