{"id":24087143,"url":"https://github.com/trusona/trusona-server-sdk-c","last_synced_at":"2026-06-10T04:31:02.048Z","repository":{"id":53125753,"uuid":"94451841","full_name":"trusona/trusona-server-sdk-c","owner":"trusona","description":"Trusona C SDK","archived":false,"fork":false,"pushed_at":"2021-04-05T18:32:43.000Z","size":274,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-27T04:27:35.227Z","etag":null,"topics":["c","sdk","trusona"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trusona.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}},"created_at":"2017-06-15T15:13:47.000Z","updated_at":"2021-04-05T18:26:58.000Z","dependencies_parsed_at":"2022-09-08T11:51:16.009Z","dependency_job_id":null,"html_url":"https://github.com/trusona/trusona-server-sdk-c","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/trusona/trusona-server-sdk-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trusona%2Ftrusona-server-sdk-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trusona%2Ftrusona-server-sdk-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trusona%2Ftrusona-server-sdk-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trusona%2Ftrusona-server-sdk-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trusona","download_url":"https://codeload.github.com/trusona/trusona-server-sdk-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trusona%2Ftrusona-server-sdk-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34137570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["c","sdk","trusona"],"created_at":"2025-01-10T03:02:31.658Z","updated_at":"2026-06-10T04:31:02.025Z","avatar_url":"https://github.com/trusona.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trusona C SDK\n\n[![Build Status](https://travis-ci.com/trusona/trusona-server-sdk-c.svg?token=ERoqgs7tKf7xAGTsABr8\u0026branch=master)](https://travis-ci.com/trusona/trusona-server-sdk-c)\n\n## Build Tools\n\nYou will need a [C](https://en.wikipedia.org/wiki/C_programming_language) language compiler like [gcc](https://github.com/gcc-mirror/gcc) or [clang](https://github.com/llvm-mirror/clang).\n\n## Dependencies\n\n- [libcurl](https://curl.haxx.se/libcurl/c) ver. 7.61.0, for interweb communication\n- [jansson](https://github.com/akheron/jansson) ver. [2.12](https://github.com/akheron/jansson/releases) for JSON manipulation\n- [openssl](https://www.openssl.org) ver. [1.1.1](https://www.openssl.org/source) for cryptographic functions\n- [ossp-uuid](https://github.com/sean-/ossp-uuid) - or equivalent provider of `uuid/uuid.h` - for UUID v4 generation\n- [PAM](http://tldp.org/HOWTO/User-Authentication-HOWTO/x115.html) - optional. If you do not require PAM support, delete `src/pam` before running any `make` commands\n\n### Test Dependencies\n\nTo successfully run the tests via `make test`, you will need to have the [check](https://libcheck.github.io/check) and [subunit](https://github.com/testing-cabal/subunit/tree/master/c) libraries in your environment.\n\n## Building \u0026 Installation\n\nWith all the dependencies in place, `make all` should complete successfully.\n\nBy default, `[sudo] make install` will install the shared libraries into `/usr/local/lib`.\n\nDevelopment headers will be installed into `/usr/local/include/trusona`\n\n## Debian Ubuntu Package Installation\n\nDebian Ubuntu packages are made available on the [releases](https://github.com/trusona/trusona-server-sdk-c/releases) page.\n\nThe packages are currently built for `Ubuntu 20.04` aka [Focal Fossa](https://releases.ubuntu.com/20.04).\n\nThe following commands will download and prompt for the installation of the binary including all dependencies.\n\n\n### Install using `wget`\n\n```bash\nwget -q https://github.com/trusona/trusona-server-sdk-c/releases/download/1.0.0/trusona-server-sdk_1.0.0-1_amd64.deb -O trusona-server-sdk.deb\nsudo apt-get update\nsudo apt-get install ./trusona-server-sdk.deb\n```\n\n### Install using `curl`\n\n```bash\ncurl -sL https://github.com/trusona/trusona-server-sdk-c/releases/download/1.0.0/trusona-server-sdk_1.0.0-1_amd64.deb -o trusona-server-sdk.deb\nsudo apt-get update\nsudo apt-get install ./trusona-server-sdk.deb\n```\n\nAfter successful installation, see the [documentation](https://docs.trusona.com/integrations/ssh-linux) for next steps to get it configured.\n\n\n## API Usage\n\n```c\nconst enum TRUSONA_SDK_RESULT trusonafy_v2(const char* path_to_json_settings,\n                                             const char* valid_user_identifier);\n```\n\nAlternatively, for extended usage:\n\n```c\nconst enum TRUSONA_SDK_RESULT trusonafy_v2_ext(const char* path_to_json_settings,\n                                                 const char* valid_user_identifier,\n                                                 const bool prompt,\n                                                 const bool user_presence);\n```\n\n#### Legacy API Usage:\n\n```c\nconst enum TRUSONA_SDK_RESULT trusonafy_v1(const char* path_to_json_settings,\n                                             const char* email_or_trusona_id);\n```\n\n\n`TRUSONA_SDK_RESULT` is an `enum` declared as follows:\n\n```c\nenum TRUSONA_SDK_RESULT {\n  TRUSONA_SUCCESS,          // what you want to see!\n  TRUSONA_INSUFFICIENT,     // the trusonafication was rejected\n  TRUSONA_FAILURE,          // other API error\n  TRUSONA_SERVICE_ERROR,    // API service error\n  TRUSONA_INIT_ERROR        // failure to initialize the API\n};\n```\n\nA value of `TRUSONA_SUCCESS` indicates trusonafication was successful.\n\n\n## PAM API Usage\n\nSee the PAM [configuration](src/pam/README.md) documentation.\n\n## Example Implementation\n\nSee [src/example/main.c](src/example/main.c) for a fully functional implementation.\n\n### TODO\n\n- Add debuging output option\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrusona%2Ftrusona-server-sdk-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrusona%2Ftrusona-server-sdk-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrusona%2Ftrusona-server-sdk-c/lists"}