{"id":22268136,"url":"https://github.com/curityio/workshop-dotnet-openid-connect-client","last_synced_at":"2026-04-28T22:34:46.231Z","repository":{"id":37848559,"uuid":"105736656","full_name":"curityio/workshop-dotnet-openid-connect-client","owner":"curityio","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-09T17:01:29.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T05:59:40.620Z","etag":null,"topics":["code-example","dotnet","oauth2","openid-connect","website"],"latest_commit_sha":null,"homepage":"","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/curityio.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":"2017-10-04T06:04:52.000Z","updated_at":"2023-04-27T09:48:05.000Z","dependencies_parsed_at":"2024-12-03T11:11:53.752Z","dependency_job_id":"6d4bab07-c881-40c8-bc33-9ec721f6d5bc","html_url":"https://github.com/curityio/workshop-dotnet-openid-connect-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/workshop-dotnet-openid-connect-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fworkshop-dotnet-openid-connect-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fworkshop-dotnet-openid-connect-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fworkshop-dotnet-openid-connect-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fworkshop-dotnet-openid-connect-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/workshop-dotnet-openid-connect-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fworkshop-dotnet-openid-connect-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32402670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code-example","dotnet","oauth2","openid-connect","website"],"created_at":"2024-12-03T11:11:41.015Z","updated_at":"2026-04-28T22:34:46.216Z","avatar_url":"https://github.com/curityio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenID Connect Demo\n\n[![Quality](https://img.shields.io/badge/quality-demo-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nThis is a demo application to explain how the OpenID Connect code flow is implemented.\n\n\n## web.config\nweb.config is used as a configuration file for the example app. Change the values to match your system.\n\nName            | Type    | Mandatory | Default  | Description\n----------------| ------- | :-------: | -------- | :---------------\n`redirect_uri`  | string  |    ✓      |          | The redirect uri to use, must be registered for the client at the OpenID Connect server.\n`client_id`     | string  |    ✓      |          | The id for the client. Used to authenticate the client against the authorization server endpoint.\n`client_secret` | string  |    ✓      |          | The shared secret to use for authentication against the token endpoint.\n`scope`         | string  |           | `openid` | The scopes to ask for.\n`jwks_uri`      | URL     | if `issuer` is not set and the `openid` scope is requested          |          | The URL that points to the JWK set.\n`authorization_endpoint` | URL | if `issuer` is not set     |          | The URL to the authorization_endpoint.\n`token_endpoint`| URL     |    if `issuer` is not set      |          | The URL to the token_endpoint. \n`issuer`        | string  | if the `openid` scope is requested.           |          | The ID of the token issuer. This enables metadata discovery which will override the configuration set up in this file.\n`base_url`      | string  |           |          | base url to be added to internal redirects. Set this to enable the client to be behind a proxy.\n\n## Assignments\n### Assignment 1\nFill in the the missing data for the token request. Without the correct pararmeters, the application will not receive a token in exchange for the code. When an access_token is recevied, the assignment is fullfilled.\n\n### Assignment 2\nFill in the the missing data for the refresh request.\nWhen the assignment is done, you will receive a new refresh and access token.\n\n### Assignment 3\nFill in the the missing data for the revoke request. \nWhen the assignment is done, you won't get an error from the revoke request.\n\n### Assignment 4\nCall the api with a invalid token, i.e. revoked. Use the token to call an api, and when the response from the API is 401 Unauthorized; refresh the access token and try again. Expect a successful response.\n\n### Assignment 5\nRevoke the refresh_token token. Expect both the refresh token and access token to be invalidated.\n\n### Assignment 6\nGet the the configuration of the client by deriving the address from the issuer name. Update the endpoint configuration from the metadata object.\n\n### Assignment 7\nCall the jwks uri and cache the keys (in Application State)\n\n## Questions and Support\n\nFor questions and support, contact Curity AB:\n\n\u003e Curity AB\n\u003e\n\u003e info@curity.io\n\u003e https://curity.io\n\n\nCopyright (C) 2016 Curity AB.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fworkshop-dotnet-openid-connect-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fworkshop-dotnet-openid-connect-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fworkshop-dotnet-openid-connect-client/lists"}