{"id":21273059,"url":"https://github.com/embesozzi/oidc-check-session-iframe","last_synced_at":"2026-01-02T06:49:47.170Z","repository":{"id":117868286,"uuid":"339086116","full_name":"embesozzi/oidc-check-session-iframe","owner":"embesozzi","description":"Simple html page for implementing check session iframe based on OpenID Connect Session Management 1.0","archived":false,"fork":false,"pushed_at":"2021-02-15T19:19:36.000Z","size":149,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T03:08:35.407Z","etag":null,"topics":["iframe","oauth2","oidc","session-management"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/embesozzi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-15T13:26:43.000Z","updated_at":"2024-06-26T06:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"001476b5-a895-496c-b228-c5fcf490fcc3","html_url":"https://github.com/embesozzi/oidc-check-session-iframe","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/embesozzi%2Foidc-check-session-iframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embesozzi%2Foidc-check-session-iframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embesozzi%2Foidc-check-session-iframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embesozzi%2Foidc-check-session-iframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embesozzi","download_url":"https://codeload.github.com/embesozzi/oidc-check-session-iframe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732252,"owners_count":20338831,"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":["iframe","oauth2","oidc","session-management"],"created_at":"2024-11-21T09:12:02.344Z","updated_at":"2026-01-02T06:49:47.141Z","avatar_url":"https://github.com/embesozzi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oidc-check-session-iframe\nSimple html page that implements check session flow based on [OpenID Connect Session Management](https://openid.net/specs/openid-connect-session-1_0.html).\n1. Relay Party adds a hidden iFrame pointing to OP's ```check_session_iframe```.\n2. Relay Party iframe polls the OP iframe with postMessage with format ```Client ID + \" \" + Session State```.\n3. Relay Party receives the postMessage back from the OP iframe with the app session status.\n\n## Configure \n\n### Adjust OpenID Provider and App settings\n\nGo to the file `index.html` and change the config variables values, for example:\n\n```javascript\nvar config = {\n opCheckSessionIframe : \"http://localhost:8080/auth/realms/master/protocol/openid-connect/login-status-iframe.html\",\n opAuthEndpoint: \"http://localhost:8080/auth/realms/master/protocol/openid-connect/auth\",\n opOriginDomain : \"http://localhost:8080\",\n appClientId : \"test\",\n appRedirectUri : \"http://localhost\"\n}\n```\n## Build and run\n\n### Launch the demo application\n\nJust run the `update.sh` script. It will build the app image based on `nginx:alpine` and will expose the app in the port 80.\n\n* http://localhost\n\n![App home](screenshot-1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembesozzi%2Foidc-check-session-iframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembesozzi%2Foidc-check-session-iframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembesozzi%2Foidc-check-session-iframe/lists"}