{"id":18406122,"url":"https://github.com/nodebb/nodebb-plugin-sso-oauth2-multiple","last_synced_at":"2025-04-07T08:32:19.290Z","repository":{"id":187320226,"uuid":"671209866","full_name":"NodeBB/nodebb-plugin-sso-oauth2-multiple","owner":"NodeBB","description":"NodeBB Plugin for configuring multiple OAuth2 endpoints for login","archived":false,"fork":false,"pushed_at":"2024-04-14T11:00:04.000Z","size":394,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-14T11:52:03.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NodeBB.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}},"created_at":"2023-07-26T19:48:13.000Z","updated_at":"2024-04-20T02:26:33.536Z","dependencies_parsed_at":"2023-11-21T05:21:39.915Z","dependency_job_id":"bd18489f-93dd-4145-98c5-6eb7dd90fa7c","html_url":"https://github.com/NodeBB/nodebb-plugin-sso-oauth2-multiple","commit_stats":null,"previous_names":["nodebb/nodebb-plugin-sso-oauth2-multiple"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-sso-oauth2-multiple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-sso-oauth2-multiple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-sso-oauth2-multiple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-sso-oauth2-multiple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NodeBB","download_url":"https://codeload.github.com/NodeBB/nodebb-plugin-sso-oauth2-multiple/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247620363,"owners_count":20968196,"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-11-06T03:07:00.766Z","updated_at":"2025-04-07T08:32:19.283Z","avatar_url":"https://github.com/NodeBB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeBB OAuth2 Multiple Client SSO\n\nThis NodeBB plugin allows you to configure logins to multiple configurable OAuth2 endpoints, via the admin backend.\nUse this plugin if you have a separate database of users and you'd like to allow access to the forum to those users via that database.\n\n## Caveat\n\nDifferent OAuth2 providers adhere to the standard differently.\nThis plugin is tested primarily against the following providers:\n\n* [Auth0 by Okta](//auth0.com)\n* [Okta](//www.okta.com/)\n\nSupport for other OAuth2 providers is _explicitly not guaranteed_.\nIf you'd like to help this plugin play nice with other providers, please\n[open an issue](https://github.com/NodeBB/nodebb-plugin-sso-oauth2-multiple/issues).\n\n## Profile Updates\n\nv1.4.0 of this plugin introduces the ability to update a user's full name and picture with data supplied by the remote userinfo endpoint.\nThe functionality (including which fields to sync/ignore) can be configured on a per-strategy basis, under the \"Adjustments\" menu when editing a strategy.\n\n## Role-Based Access Control\n\nThis plugin is able to sort users into specific user groups based on user roles.\nYou can maintain a map of roles to user groups, and further limit access via standard category privileges in NodeBB.\n\n_The role-based access control functionality was sponsored by [Outplayed](https://outplayed.com)._\n\n## Screenshots\n\n![OAuth2 Strategy Editing](./screenshots/configure.png)\n\n## For Developers\n\n### Hooks\nOther plugins can interact with this plugin, as it fires the following hooks:\n\n1. On successful login — `action:oauth2.login` — passes in `(name, user, profile)`\n\t* `name` is the strategy name.\n\t* `user` is the local NodeBB user (probably just the `uid`).\n\t* `profile` is the remote profile as retrieved by this plugin.\n\n### API\nIf you need to look up the user from your own system, you can use the GET api route `/api/v3/plugins/oauth2-multiple/provider/:provider/user/:oAuthId`.\n* `:provider` must be the name of you OAuth2 strategy\n* `:oAuthId` must be the same value that the userinfo endpoint returns for the defined user id","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Fnodebb-plugin-sso-oauth2-multiple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodebb%2Fnodebb-plugin-sso-oauth2-multiple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Fnodebb-plugin-sso-oauth2-multiple/lists"}