Releases: auth0/auth0-java
1.6.0
1.6.0 (2018-06-04)
Added
- Expose additional error response properties in the Exception #123 (lbalmaceda)
- Add email-templates endpoints #117 (lbalmaceda)
1.5.1
1.5.1 (2018-03-01)
Fixed
- Support password policy error response #108 (lbalmaceda)
- Close ResponseBody buffer after read #101 (lbalmaceda)
1.5.0
1.4.0
1.4.0 (2017-11-30)
Added
- Add user_id setter #93 (lbalmaceda)
- Add /v2/users-by-email endpoint #87 (lbalmaceda)
Breaking changes
- Include a proper SignUp response #92 (lbalmaceda)
1.3.1
1.3.0
1.2.0
1.2.0 (2017-08-07)
Full Changelog
Closed issues
- Get AD connection's provisioning_ticket_url property #66
Added
- Add support for provisioning_ticket_url property to Connection POJO #67 (unnamed38)
- Add public User constructor without parameters #59 (lbalmaceda)
Removed
- Remove invalid Logout URL parameter #65 (lbalmaceda)
1.1.0
1.1.0 (2017-05-23)
Added
- Add getter for User and ProfileData extra properties #56 (lbalmaceda)
- Add renew authentication endpoint #51 (lbalmaceda)
- Add revoke token endpoint #50 (lbalmaceda)
- Add getter for Identity extra properties #45 (lbalmaceda)
- Add response_type and custom parameter setter for AuthorizeUrlBuilder #40 (lbalmaceda)
Changed
Fixed
- Fix "q" query parameter encoding #55 (lbalmaceda)
- Close the ResponseBody after its parsed #38 (lbalmaceda)
1.0.0
1.0.0 (2017-01-30)
Reworked Auth0 SDK for java by providing better support for non-Android application (for Android please use Auth0.Android).
The changes from v0 includes:
- OAuth 2.0 endpoints in Authentication API
- Sync calls by default
- Added Management API endpoints
- Better error handling for Auth and Management API erros
Auth API
The implementation is based on the Authentication API Docs.
Create a new AuthAPI instance by providing the client data from the dashboard.
AuthAPI auth = new AuthAPI("{YOUR_DOMAIN}", "{YOUR_CLIENT_ID}", "{YOUR_CLIENT_SECRET}");Management API
The implementation is based on the Management API Docs.
Create a new ManagementAPI instance by providing the domain from the client dashboard and the API Token. Click here for more information on how to obtain a valid API Token.
ManagementAPI mgmt = new ManagementAPI("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}");The Management API is divided into different entities. Each of them have the list, create, update, delete and update methods plus a few more if corresponds. The calls are authenticated using the API Token given in the ManagementAPI instance creation and must contain the scope required by each entity. See the javadoc for details on which scope is expected for each call.
- Client Grants: See Docs. Access the methods by calling
mgmt.clientGrants(). - Clients: See Docs. Access the methods by calling
mgmt.clients(). - Connections: See Docs. Access the methods by calling
mgmt.connections(). - Device Credentials: See Docs. Access the methods by calling
mgmt.deviceCredentials(). - Logs: See Docs. Access the methods by calling
mgmt.logEvents(). - Rules: See Docs. Access the methods by calling
mgmt.rules(). - User Blocks: See Docs. Access the methods by calling
mgmt.userBlocks(). - Users: See Docs. Access the methods by calling
mgmt.users(). - Blacklists: See Docs. Access the methods by calling
mgmt.blacklists(). - Emails: See Docs. Access the methods by calling
mgmt.emailProvider(). - Guardian: See Docs. Access the methods by calling
mgmt.guardian(). - Stats: See Docs. Access the methods by calling
mgmt.stats(). - Tenants: See Docs. Access the methods by calling
mgmt.tenants(). - Tickets: See Docs. Access the methods by calling
mgmt.tickets().
0.4.0
Added
UserProfilehas now the following properties:givenName,familyName,userMetadata,appMetadataandemailVerified#28 (hzalaz)- New method
AuthenticationAPIClient#token(code, redirectURI)to call/oauth/tokenendpoint. #27 (arcseldon, hzalaz)
Fixed
Breaking changes
The method AuthenticationAPIClient#token(code, codeVerifier, redirectURI) was replaced by AuthenticationAPIClient#token(String, String). To perform a request to /oauth/token you need to provide either a client_secret (private clients) or the code_verifier (public clients) used to generate the challenge sent to /authorize.
AuthenticationAPIClient client = new AuthenticationAPIClient(new Auth0("your_clientId", "your_domain"));
// Public clients
client
.token("code", "redirect_uri")
.setCodeVerifier("code_verifier")
.start(new Callback<Credentials> {...});
// Private clients
client
.token("code", "redirect_uri")
.setClientSecret("client_secret")
.start(new Callback<Credentials> {...});