{"id":17034525,"url":"https://github.com/caub/discoursso","last_synced_at":"2025-09-05T16:13:19.357Z","repository":{"id":57212834,"uuid":"84057507","full_name":"caub/discoursso","owner":"caub","description":"Single Sign On for discourse","archived":false,"fork":false,"pushed_at":"2017-08-23T17:11:38.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T20:57:20.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/caub.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}},"created_at":"2017-03-06T09:59:25.000Z","updated_at":"2017-05-07T14:44:39.000Z","dependencies_parsed_at":"2022-09-12T11:32:38.338Z","dependency_job_id":null,"html_url":"https://github.com/caub/discoursso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdiscoursso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdiscoursso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdiscoursso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fdiscoursso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caub","download_url":"https://codeload.github.com/caub/discoursso/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026042,"owners_count":20549073,"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":"2024-10-14T08:43:51.834Z","updated_at":"2025-03-22T22:17:23.904Z","avatar_url":"https://github.com/caub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Discourse SSO [![Build Status](https://travis-ci.org/caub/discoursso.svg?branch=master)](https://travis-ci.org/caub/discoursso)\n\n```js\nvar sso = require('discoursso');\n\napp.get('/sso', (req, res) =\u003e {\n\n\ttry {\n\t\t// make sure to convert with the right user fields for discourse\n\t\t// email, name, username, avatar_url, admin, require_activation, ...\n\t\tconst discourseUser = convert(req.user); \n\n\t\tconst url = sso(req.query, discourseUser, ssoSecret); // get redirect url\n\n\t\tres.redirect(url); // go there\n\n\t} catch(e) { // faled to verify signature, could discard query string as well\n\t\tres.redirect('/login?'+querystring.stringify(req.query));\n\t}\n})\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fdiscoursso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaub%2Fdiscoursso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fdiscoursso/lists"}