{"id":21343205,"url":"https://github.com/gpreviatti/dotnet-api-with-keycloak","last_synced_at":"2026-03-04T06:31:06.950Z","repository":{"id":104788283,"uuid":"584765100","full_name":"gpreviatti/dotnet-api-with-keycloak","owner":"gpreviatti","description":"Prof of concept to test dotnet authentication and authorization with keycloak ","archived":false,"fork":false,"pushed_at":"2023-01-25T17:11:32.000Z","size":253,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T15:47:14.003Z","etag":null,"topics":["authentication","authorization","docker-compose","dotnet","keycloak","postgresql"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"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/gpreviatti.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":"2023-01-03T13:09:47.000Z","updated_at":"2023-11-04T08:28:18.000Z","dependencies_parsed_at":"2023-05-29T21:30:36.697Z","dependency_job_id":null,"html_url":"https://github.com/gpreviatti/dotnet-api-with-keycloak","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gpreviatti/dotnet-api-with-keycloak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpreviatti%2Fdotnet-api-with-keycloak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpreviatti%2Fdotnet-api-with-keycloak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpreviatti%2Fdotnet-api-with-keycloak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpreviatti%2Fdotnet-api-with-keycloak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpreviatti","download_url":"https://codeload.github.com/gpreviatti/dotnet-api-with-keycloak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpreviatti%2Fdotnet-api-with-keycloak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30074142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["authentication","authorization","docker-compose","dotnet","keycloak","postgresql"],"created_at":"2024-11-22T01:12:25.474Z","updated_at":"2026-03-04T06:31:06.926Z","avatar_url":"https://github.com/gpreviatti.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotnet api with Keycloak authentication/authorization\n\nProf of concept to test dotnet authentication and authorization with keycloak\n\n## References\n\n[Get starting with keycloak](https://www.keycloak.org/docs/latest/authorization_services/index.html#_getting_started_hello_world_create_realm)\n\n[Blob post reference](https://nikiforovall.github.io/aspnetcore/dotnet/2022/08/24/dotnet-keycloak-auth.html)\n\n## Run stack\n\n```sh\ncd infra \u0026\u0026 docker-compose up\n```\n\n## Backup and restore your configurations\n\nBackup\n\n```sh\ncd infra \u0026\u0026 docker-compose exec keycloak kc.sh export --realm `\u003cyour realm name\u003e` --dir /imports\n```\n\nRestore\n\n```sh\ncd infra \u0026\u0026 docker-compose exec keycloak kc.sh import --dir /imports\n```\n\n[Reference](https://www.keycloak.org/server/importExport#:~:text=To%20export%20a%20realm%2C%20you,started%20when%20invoking%20this%20command.\u0026text=To%20export%20a%20realm%20to,%2D%2Ddir%20option.\u0026text=When%20exporting%20realms%20to%20a,for%20each%20realm%20being%20exported.)\n\n\n## Default credentials\n\nKeycloak admin user\n\n```\nlogin: admin\npassword: admin\n```\n\nUser with admin role\n\n```\nlogin: giovanni\npassword: Change@Me\n```\n\nUser without admin role\n\n```\nlogin: joao\npassword: Change@Me\n```\n\n[Setup new realm wiki page](https://github.com/gpreviatti/dotnet-api-with-keycloak/wiki/Setup-new-Realm)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpreviatti%2Fdotnet-api-with-keycloak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpreviatti%2Fdotnet-api-with-keycloak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpreviatti%2Fdotnet-api-with-keycloak/lists"}