{"id":13341552,"url":"https://github.com/Authfix/Blazor-Oidc","last_synced_at":"2025-03-11T22:31:09.342Z","repository":{"id":144141555,"uuid":"142169361","full_name":"Authfix/Blazor-Oidc","owner":"Authfix","description":"Blazor implementation of the javascript Oidc-client library","archived":false,"fork":false,"pushed_at":"2018-07-26T07:32:07.000Z","size":663,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-12-07T19:51:15.487Z","etag":null,"topics":["blazor","blazor-extensions","oidc-client","web-assembly"],"latest_commit_sha":null,"homepage":null,"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/Authfix.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-07-24T14:22:24.000Z","updated_at":"2019-11-23T19:19:18.000Z","dependencies_parsed_at":"2023-08-10T04:17:45.163Z","dependency_job_id":null,"html_url":"https://github.com/Authfix/Blazor-Oidc","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/Authfix%2FBlazor-Oidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authfix%2FBlazor-Oidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authfix%2FBlazor-Oidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authfix%2FBlazor-Oidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Authfix","download_url":"https://codeload.github.com/Authfix/Blazor-Oidc/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125111,"owners_count":20240263,"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":["blazor","blazor-extensions","oidc-client","web-assembly"],"created_at":"2024-07-29T19:25:29.268Z","updated_at":"2025-03-11T22:31:09.337Z","avatar_url":"https://github.com/Authfix.png","language":"C#","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# Oidc Blazor Extensions Oidc\n\nThis package adds a [Oidc-client](https://github.com/IdentityModel/oidc-client-js) library for [Microsoft ASP.NET Blazor](https://github.com/aspnet/Blazor).\n\nThe package aims to add the possibility to use oidc-client javascript library inside a Blazor project by using Blazor's interop capabilities.\n\n# Features\n\nThis package *does not* implements all public features of the oidc-client library.\n\n\u003e Note: Only basic authentication is available for now.\n\n# Sample usage\n\nThe following snippet shows how to setup the oidc client and allow authentication.\n\nOn the page where we want to begin the authentication process\n\n```c#\nvar config = new IdentityConfiguration\n{\n    Authority = \"http://localhost:50000\",\n    ClientId = \"js\",\n    PostLogoutRedirectUri = \"http://localhost:50001/index.html\",\n    RedirectUri = \"http://localhost:50001/callback\",\n    ResponseType = \"id_token token\",\n    Scope = \"openid profile api1\"\n};\n\nvar manager = new UserManager(config);\nvar user = await manager.GetUser();\n\nif(user == null)\n{\n    await manager.SignIn();\n}\nelse\n{\n    // do anything\n}\n```\n\nAnd on the callback page\n\n```c#\nvar manager = new UserManager(config);\nawait manager.SignInRedirectCallback();\n```\n\n# Contributions and feedback\n\nPlease feel free to use the component, open issues, fix bugs or provide feedback.\n\n# Contributors\n\nThe following people are the maintainers of the project:\n\n- [Thomas Bailly](https://github.com/authfix)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAuthfix%2FBlazor-Oidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAuthfix%2FBlazor-Oidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAuthfix%2FBlazor-Oidc/lists"}