{"id":20690612,"url":"https://github.com/notmyself/delegated-authorization","last_synced_at":"2026-06-04T11:31:27.040Z","repository":{"id":138908751,"uuid":"274244036","full_name":"NotMyself/delegated-authorization","owner":"NotMyself","description":"This is a demo application that demonstrates how to to do delegated authorization with OAuth 2 using standard .NET libraries.","archived":false,"fork":false,"pushed_at":"2020-06-22T22:04:13.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-19T20:33:20.436Z","etag":null,"topics":["oauth2","oidc","openid-connect"],"latest_commit_sha":null,"homepage":"","language":"C#","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/NotMyself.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-22T21:16:26.000Z","updated_at":"2020-07-21T16:22:41.000Z","dependencies_parsed_at":"2025-12-16T13:03:58.368Z","dependency_job_id":null,"html_url":"https://github.com/NotMyself/delegated-authorization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NotMyself/delegated-authorization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fdelegated-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fdelegated-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fdelegated-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fdelegated-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotMyself","download_url":"https://codeload.github.com/NotMyself/delegated-authorization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2Fdelegated-authorization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33903134,"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-04T02:00:06.755Z","response_time":64,"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":["oauth2","oidc","openid-connect"],"created_at":"2024-11-16T23:13:46.278Z","updated_at":"2026-06-04T11:31:27.035Z","avatar_url":"https://github.com/NotMyself.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delegated Authorization\n\n**Scenario:** I am building an application with no database.\nIt will mainly consume 3rd party APIs on behalf of a user.\nThat user will do authentication using Auth0 through OpenID Connect.\nThen the user will authorize Github and Twitch API access via OAuth 2.\n\n## Getting Started\n\nAs long as you have the development dependencies installed, the application can be run on your bare metal machine.\n\n1. Clone the repository: `git clone git clone https://github.com/NotMyself/delegated-authorization.git`\n1. Change directory into the cloned repository `cd bivrost delegated-authorization`\n1. Run the command `dotnet user-secrets set Auth0:Domain {auth0-tenant-domain}`.\n1. Run the command `dotnet user-secrets set Auth0:ClientId {auth0-client-id}`.\n1. Run the command `dotnet user-secrets set Auth0:ClientSecret {auth0-client-secret}`.\n1. Run the command `dotnet user-secrets set Github:ClientId {github-client-id}`.\n1. Run the command `dotnet user-secrets set Github:ClientSecret {github-client-secret}`.\n1. Run the command `dotnet user-secrets set  Twitch:ClientId {twitch-client-id}`.\n1. Run the command `dotnet user-secrets set Twitch:ClientSecret {twitch-client-secret}`.\n1. Run the command `dotnet restore src/server`\n1. Run the command `dotnet watch src/server`\n\n## Obtaining Client Credentials\n\nYou will need to create an Auth0 tenant and configure a client application for OIDC authentication. You will also need to create OAuth 2 client credentials for Twitch and Github.\n\n| Service  |      Callback URI     |\n|----------------|:-------------:|\n| [Auth0](https://auth0.com/) (OIDC) | https://localhost:5001/callback |\n| [Twitch](https://dev.twitch.tv/console) (OAuth) |https://localhost:5001/authorize-twitch |\n| [Github](https://github.com/settings/developers) (OAuth) |https://localhost:5001/authorize-github |\n\n## Demo\n\n[![Demo](http://img.youtube.com/vi/Xn5e4-a9QQw/0.jpg)](http://www.youtube.com/watch?v=Xn5e4-a9QQw \"Demo\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmyself%2Fdelegated-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotmyself%2Fdelegated-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmyself%2Fdelegated-authorization/lists"}