{"id":19385401,"url":"https://github.com/micdah/msteamsopenidauth","last_synced_at":"2026-06-08T23:02:06.020Z","repository":{"id":90536473,"uuid":"135502509","full_name":"micdah/MsTeamsOpenIdAuth","owner":"micdah","description":"Demonstration of authentication against Identity Server from MS Teams using Bot Framework v4","archived":false,"fork":false,"pushed_at":"2018-05-30T22:30:11.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T17:49:40.734Z","etag":null,"topics":["hack","identityserver4","ms-bot-framework","ms-teams","oauth2","openid-connect"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micdah.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":"2018-05-30T22:10:12.000Z","updated_at":"2022-07-31T23:35:50.000Z","dependencies_parsed_at":"2023-04-22T21:37:50.696Z","dependency_job_id":null,"html_url":"https://github.com/micdah/MsTeamsOpenIdAuth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micdah/MsTeamsOpenIdAuth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micdah%2FMsTeamsOpenIdAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micdah%2FMsTeamsOpenIdAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micdah%2FMsTeamsOpenIdAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micdah%2FMsTeamsOpenIdAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micdah","download_url":"https://codeload.github.com/micdah/MsTeamsOpenIdAuth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micdah%2FMsTeamsOpenIdAuth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"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-08T02:00:07.615Z","response_time":111,"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":["hack","identityserver4","ms-bot-framework","ms-teams","oauth2","openid-connect"],"created_at":"2024-11-10T09:36:05.158Z","updated_at":"2026-06-08T23:02:06.004Z","avatar_url":"https://github.com/micdah.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenID Connect auth using Bot Framework v4\n\nThis repository contains a quickly hacked-together demonstration of authenticating\nagainst a OpenID Connect ([IdentityServer4](https://github.com/IdentityServer/IdentityServer4))\nfrom Microsoft Teams via a bot written using [Bot Builder v4](https://github.com/Microsoft/BotBuilder).\n\n**Disclaimer:** This has been produced during a hack week and not been prepared for\nproduction release - so use it as inspiration only.\n\n## Works in MS Teams\n\nTo test the code, you will need to deploy it to Teams - just write a manifest file (_consider\nusing the app designer_) and upload it as a custom app to your MS Team (_remember to allow\ndeveloper features in your Team_).\n\nThis will **not work in the _bot framework emulator_** as it handles the `signin` activity\ntype differently than Teams does, it requires the client to initiate a authentication flow\nusing `microsoftTeams.authentication.authenticate` which Teams does when it handles that \nactivity type, but the emulator does not, it just opens it as if it was a `openUrl` type.\n\n## How to configure\n\nThere are three variables in `appsettings.json` that you will need to configure:\n* `LoginStartUrl` - This page initiates the authentiaction flow against your OpenID server,\n    and the URL should point to where the bot is hosted\n* `BotClientId` - This is the _client id_ configured in your OpenID server which should\n    be configured with allowing redirects to where the bot is hosted\n* `BotAuthority` - This is the base URL part for where your OpenID server is hosted ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicdah%2Fmsteamsopenidauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicdah%2Fmsteamsopenidauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicdah%2Fmsteamsopenidauth/lists"}