{"id":16017485,"url":"https://github.com/madarche/oidc-rp-web-example","last_synced_at":"2025-04-05T03:23:34.760Z","repository":{"id":75078588,"uuid":"293347140","full_name":"madarche/oidc-rp-web-example","owner":"madarche","description":"OpenID Connect Relying Party (RP) web client (like a web site) example","archived":false,"fork":false,"pushed_at":"2022-10-13T16:41:15.000Z","size":268,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T20:06:18.726Z","etag":null,"topics":["oidc","openid","openid-client","openid-connect"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/madarche.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":"2020-09-06T19:23:54.000Z","updated_at":"2022-10-13T16:41:19.000Z","dependencies_parsed_at":"2024-02-06T06:45:39.111Z","dependency_job_id":null,"html_url":"https://github.com/madarche/oidc-rp-web-example","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"9418626913a34deb6f08f5c0b71692ba5eba48a3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madarche%2Foidc-rp-web-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madarche%2Foidc-rp-web-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madarche%2Foidc-rp-web-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madarche%2Foidc-rp-web-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madarche","download_url":"https://codeload.github.com/madarche/oidc-rp-web-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247281959,"owners_count":20913270,"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":["oidc","openid","openid-client","openid-connect"],"created_at":"2024-10-08T16:06:15.019Z","updated_at":"2025-04-05T03:23:34.740Z","avatar_url":"https://github.com/madarche.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"oidc-rp-web-example\n===================\n\n[![Build Status](https://travis-ci.org/madarche/oidc-rp-web-example.svg?branch=master)](https://travis-ci.org/madarche/oidc-rp-web-example)\n\nOpenID Connect Relying Party (RP) *web client* (like a web site) example\n\n\nArchitecture\n------------\n\nThis example needs an OIDC Server (OP) and optionally an OAuth2 Resource Server\n(https://github.com/madarche/oauth2-resource-server-example).\n\n![Architecture schema](architecture.png \"Architecture schema\")\n\n\nUsage\n-----\n\nIt is assumed that this application will run as\nhttps://oidc-rp-web-example.local.test/. One can change this URL with whatever\nother URL.\n\nFirst, write the `config.tom` config file.\n\nOptionally set the `resources.url` property with the URL of the OAuth2 Resource Server route.\n\n```shellsession\ncp config.toml.example config.toml\nvim config.toml\n```\n\nNext, register the RP in the OP with the following properties:\n\n* `client_id` : the same as the `client_id` set in the `config.toml`\n* `redirect_uris` : `https://oidc-rp-web-example.local.test/logged_in`\n* `post_logout_redirect_uris` : `https://oidc-rp-web-example.local.test/logged_out`\n* `application_type` : `web`\n* `token_endpoint_auth_method` : `client_secret_basic`\n* `client_secret` : the same as the `client_secret` set in `config.toml`\n\nThen, install the needed packages and start the application:\n\n```shellsession\nnpm ci\nnpm start\n```\n\nFinally, visit the application at https://oidc-rp-web-example.local.test/\n\n\n### When the OP uses self-signed certificate\n\nIf the OP uses a self-signed certificate, one gets the following error:\n```\nRequestError: self signed certificate\n```\n\nThe solution is, prior to the  `npm start` command, to specify the certificate\nto Node.js, for example:\n\n```shellsession\nexport NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/cert/local.test.crt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadarche%2Foidc-rp-web-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadarche%2Foidc-rp-web-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadarche%2Foidc-rp-web-example/lists"}