{"id":21166901,"url":"https://github.com/ssoready/ssoready-go","last_synced_at":"2025-09-03T08:17:49.644Z","repository":{"id":260664999,"uuid":"870919761","full_name":"ssoready/ssoready-go","owner":"ssoready","description":"Golang SDK for SSOReady. Add SAML + SCIM support to any Go application this afternoon.","archived":false,"fork":false,"pushed_at":"2024-11-01T17:05:23.000Z","size":55,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T07:39:21.525Z","etag":null,"topics":["saml","scim","sso"],"latest_commit_sha":null,"homepage":"https://ssoready.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssoready.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T23:06:06.000Z","updated_at":"2025-06-05T04:12:54.000Z","dependencies_parsed_at":"2024-11-01T18:17:34.002Z","dependency_job_id":"941b37c0-7e84-4219-a3cb-2fd0e2e09d2c","html_url":"https://github.com/ssoready/ssoready-go","commit_stats":null,"previous_names":["ssoready/ssoready-go"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ssoready/ssoready-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssoready%2Fssoready-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssoready%2Fssoready-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssoready%2Fssoready-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssoready%2Fssoready-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssoready","download_url":"https://codeload.github.com/ssoready/ssoready-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssoready%2Fssoready-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273411256,"owners_count":25100725,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["saml","scim","sso"],"created_at":"2024-11-20T14:56:33.912Z","updated_at":"2025-09-03T08:17:49.575Z","avatar_url":"https://github.com/ssoready.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://i.imgur.com/OhtkhbJ.png)\n\n# SSOReady-Go: SAML \u0026 SCIM for Golang\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ssoready/ssoready-go.svg)](https://pkg.go.dev/github.com/ssoready/ssoready-go)\n\n`github.com/ssoready/ssoready-go` is a Go SDK for the\n[SSOReady](https://ssoready.com) API.\n\nSSOReady is a set of open-source dev tools for implementing Enterprise SSO. You\ncan use SSOReady to add SAML and SCIM support to your product this afternoon.\n\nFor example applications built using SSOReady-Go, check out:\n\n- [SSOReady Example App: Golang + net/http with SAML](https://github.com/ssoready/ssoready-example-app-golang-saml)\n\n## Installation\n\nRun the following:\n\n```bash\ngo get github.com/ssoready/ssoready-go\n```\n\n## Usage\n\nThis section provides a high-level overview of how SSOReady works, and how it's\npossible to implement SAML and SCIM in just an afternoon. For a more thorough\nintroduction, visit the [SAML\nquickstart](https://ssoready.com/docs/saml/saml-quickstart) or the [SCIM\nquickstart](https://ssoready.com/docs/scim/scim-quickstart).\n\nThe first thing you'll do is create a SSOReady client instance:\n\n```go\nimport (\n\t\"github.com/ssoready/ssoready-go\"\n\tssoreadyclient \"github.com/ssoready/ssoready-go/client\"\n)\n\nssoreadyClient := ssoreadyclient.NewClient()\n```\n\n### SAML in two lines of code\n\nSAML (aka \"Enterprise SSO\") consists of two steps: an _initiation_ step where\nyou redirect your users to their corporate identity provider, and a _handling_\nstep where you log them in once you know who they are.\n\nTo initiate logins, you'll use SSOReady's [Get SAML Redirect\nURL](https://ssoready.com/docs/api-reference/saml/get-saml-redirect-url)\nendpoint:\n\n```go\n// this is how you implement a \"Sign in with SSO\" button\ngetRedirectURLRes, err := ssoreadyClient.SAML.GetSAMLRedirectURL(ctx, \u0026ssoready.GetSAMLRedirectURLRequest{\n    OrganizationExternalID: \"...\",\n})\nif err != nil { ... }\n\n// redirect the user to getRedirectURLRes.RedirectURL ...\n```\n\nYou can use whatever your preferred ID is for organizations (you might call them\n\"workspaces\" or \"teams\") as your `OrganizationExternalID`. You configure those\nIDs inside SSOReady, and SSOReady handles keeping track of that organization's\nSAML and SCIM settings.\n\nTo handle logins, you'll use SSOReady's [Redeem SAML Access\nCode](https://ssoready.com/docs/api-reference/saml/redeem-saml-access-code) endpoint:\n\n```go\nredeemRes, err := ssoreadyClient.SAML.RedeemSAMLAccessCode(ctx, \u0026ssoready.RedeemSAMLAccessCodeRequest{\n\tSAMLAccessCode: \"saml_access_code_...\",\n})\n\n// log the user in as redeemRes.Email inside redeemRes.OrganizationExternalID\n```\n\nYou configure the URL for your `/ssoready-callback` endpoint in SSOReady.\n\n### SCIM in one line of code\n\nSCIM (aka \"Enterprise directory sync\") is basically a way for you to get a list\nof your customer's employees offline.\n\nTo get a customer's employees, you'll use SSOReady's [List SCIM\nUsers](https://ssoready.com/docs/api-reference/scim/list-scim-users) endpoint:\n\n```go\nlistSCIMUsersRes, err := ssoreadyClient.SCIM.ListSCIMUsers(ctx, \u0026ssoready.SCIMListSCIMUsersRequest{\n\tOrganizationExternalID: \"...\",\n})\nif err != nil { ... }\n\n// create users from each scim user\nfor _, scimUser := range listSCIMUsersRes.SCIMUsers { \n\t// each scimUser has an ID, Email, Attributes, and Deleted\n}\n```\n\n## Contributing\n\nIssues and PRs are more than welcome. Be advised that this library is largely\nautogenerated from [`ssoready/docs`](https://github.com/ssoready/docs). Most\ncode changes ultimately need to be made there, not on this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssoready%2Fssoready-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssoready%2Fssoready-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssoready%2Fssoready-go/lists"}