{"repo":"ctron/yew-oauth2","free":true,"listed":false,"github":"https://github.com/ctron/yew-oauth2","clone":"git clone https://github.com/ctron/yew-oauth2.git","description":"General purpose OAuth2 component for Yew","language":"Rust","stars":48,"topics":["authentication","oauth2","oidc","openid-connect","yew"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"OAuth2 (and OIDC) component for Yew Add to your Cargo.toml : By default, the yew-nested-router integration for yew-nested-router is disabled. You can enable it using: OpenID Connect OpenID Connect requires an additional dependency and can be enabled using the feature openid . Examples A quick example of how to use it (see below for more complete examples): This repository also has some complete examples: yew-oauth2-example A complete example, hiding everything behind a \"login\" page, and revealing the content once the user logged in. Use with either OpenID Connect or OAuth2. yew-oauth2-redirect-example A complete example, showing the full menu structure, but redirecting the user automatically to the login server when required. Use with either OpenID Connect or OAuth2. Testing Testing the example projects locally can be done using a local Keycloak instance and trunk . Start the Keycloak instance using: Then start trunk with the local developer instance: And navigate your browser to http://localhost:8080. NOTE: It is important to use http://localhost:8080 instead of e.g. http://127.0.0.1:8080 , as Keycloak is configured by default to use http://localhost: as a valid redirect URL when in dev-mode. Otherwise, you will get an \"invalid redirect\" error from Keycloak.","default_branch":null,"files":null,"tree":[],"storefront":"/r/ctron","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ctron/yew-oauth2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}