{"repo":"casdoor/casdoor-java-sdk","free":true,"listed":false,"github":"https://github.com/casdoor/casdoor-java-sdk","clone":"git clone https://github.com/casdoor/casdoor-java-sdk.git","description":"Java client SDK for Casdoor","language":"Java","stars":39,"topics":["java","oauth","auth","authn","authentication","sso","oidc","casdoor","keycloak","jwt"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"casdoor-java-sdk This is Casdoor's SDK for java, which will allow you to easily connect your application to the Casdoor authentication system without having to implement it from scratch. Casdoor SDK is very simple to use. We will show you the steps below. Step1. Init Config Initialization requires 5 parameters, which are all string type: Name (in order) Must Description ------------------ ------ ----------------------------------------------------- endpoint Yes Casdoor Server Url, such as http://localhost:8000 clientId Yes Client ID for the Casdoor application clientSecret Yes Client secret for the Casdoor application certificate Yes The public key for the Casdoor application's cert organizationName Yes The name for the Casdoor organization applicationName No The name for the Casdoor application Step2. Get Service and use Now provide two services: CasdoorUserService , CasdoorAuthService You can create them like UserService CasdoorUserService support basic user operations, like: - GetUser(name string) , get one user by user name. - GetUsers() , get all users. - UpdateUser(auth.User)/AddUser(auth.User)/DeleteUser(auth.User) , write user to database. AuthService 1. Get token and parse After casdoor verification passed, it will be redirected to your application with code and state, like http://forum.casbin.org?code=xxx&state=yyyy . Your web application can get the code , state and call GetOAuthToken(code, state) , then parse out jwt token. The general process is as follows: 2. Se","default_branch":null,"files":null,"tree":[],"storefront":"/r/casdoor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/casdoor/casdoor-java-sdk/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."}