Releases: auth0/Lock.Android
v2.13.0
Changed
- Use auth0.android 1.15.2 #526 (lbalmaceda)
- Update facebook icon to comply with new branding #525 (lbalmaceda)
2.3.0
Added
- Send custom audience on login/signIn if is OIDC conformant #387 (lbalmaceda)
- Include updated Proguard rules in the packaged aar #385 (lbalmaceda)
- Support custom audience for Web Authentication #383 (lbalmaceda)
- Support custom schemes for Web Authentication #382 (lbalmaceda)
- Add option to hide Header Title on the Main screen #381 (lbalmaceda)
Changed
- Update gradle plugins and google dependencies #389 (hzalaz)
- Use Header style and fix Submit button height when label is displayed #388 (lbalmaceda)
Deprecated
- Deprecate useImplicitGrant method #372 (lbalmaceda)
Fixed
- Fix Auth0 parcel that was losing telemetry and OIDC flag #384 (lbalmaceda)
- Fix wrong label setting if login was disabled and pwd reset was first screen #380 (lbalmaceda)
- Don't return to login/signup screen after pwd reset if those screens are disabled #379 (lbalmaceda)
- Add authentication parameters to custom AuthProvider #375 (lbalmaceda)
- Avoid sending authentication parameters on password-reset #373 (lbalmaceda)
Breaking changes
- Use labeled submit button by default and separate signUp/logIn strings #386 (lbalmaceda)
2.2.1
2.2.0
2.1.1
2.1.0
Added
- Support connection_scope for OAuth Connections #361 (lbalmaceda)
- Send LockException if the Theme is invalid #358 (lbalmaceda)
- Add labeled submit button option #352 (lbalmaceda)
Fixed
- Non-empty username validation for custom/imported connections #360 (lbalmaceda)
- Fix Theme load from styles.xml #357 (lbalmaceda)
Breaking changes
- Use browser by default when using WebAuthProvider. #355 (lbalmaceda)
Since Google will be blocking webview OAuth request we switched the default authentication flow for all social connections from WebView to Browser.
Browser authentication requires a little more configuration in your AndroidManifest.xml
file.
First make sure LockActivity
has singleTask
in android:launchMode
and then add to it an intent-filter
:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="{YOUR_AUTH0_DOMAIN}"
android:pathPrefix="/android/{YOUR_APP_PACKAGE_NAME}/callback"
android:scheme="https" />
</intent-filter>
2.0.0
Changed
- Merge Enterprise and Social login events #347 (lbalmaceda)
- Show button when only one enterprise connection is available #341 (lbalmaceda)
- Filter social strategies by connection name #340 (lbalmaceda)
- Flatten Strategies into Connections #335 (lbalmaceda)
Fixed
- Fix OAuth connection callback for PasswordlessActivity #346 (lbalmaceda)
- Fix non ro-enabled enterprise connections flow. #344 (lbalmaceda)
- Fix wrong telemetry version #342 (lbalmaceda)
Breaking changes
- [Breaking Change] Rename builder methods #350 (lbalmaceda)
- Refactor AuthProviderResolver [Breaking Change] #333 (lbalmaceda)
1.18.0
1.17.1
2.0.0-beta.4
Closed issues
- Lock SSO Username Fails Validation #332
Fixed
- Change username validation for SSO connections #334 (lbalmaceda)
- Check that requested tokens are present on the result. #330 (lbalmaceda)
- Use first available connection name when authenticating with OAuth #320 (lbalmaceda)
Added
- Custom Style for Social Buttons #325 (lbalmaceda)
- Request the user to accept Terms&Policy before Sign Up #319 (lbalmaceda)
- Handle too_many_attempts API error #308 (lbalmaceda)
- Add Service Terms and Privacy Policy dialog #307 (lbalmaceda)
Changed
- Force init lock [Breaking Change] #329 (lbalmaceda)
- Update Auth0 lib version to latest #327 (lbalmaceda)
- Hide Theme configuration on the Builder [Breaking Change] #326 (lbalmaceda)
- Use AuthMode constants when notifying tab change #323 (lbalmaceda)
- Handle wrong Client Type error #321 (lbalmaceda)
- Change SocialButton title when changing the Form mode #317 (lbalmaceda)
- UI Improvements: Bigger buttons/fields #314 (lbalmaceda)
- New Tab design. #313 (lbalmaceda)
- Use pngs instead of vectorial xml files #311 (lbalmaceda)
- Make PKCE enabled by default #310 (lbalmaceda)
- Always pick defaultDbConnection if available #309 (lbalmaceda)
Breaking changes
Lock
& PassworlessLock
no longer has the method onCreate(Activity)
and it's logic is now part of the method Lock.Builder.build(Activity)
. So to create a Lock instance you will have
Lock lock = Lock.newBuilder(auth0, callback)
//Customize Lock
.build(this);
Also now you can create Lock
by reading your Auth0 account credentials from a strings file
Lock lock = Lock.newBuilder(callback)
//Customize Lock
.build(this);
and he string file should have
<resources>
<string name="com_auth0_client_id">{CLIENT_ID}</string>
<string name="com_auth0_domain">{DOMAIN}</string>
</resources>
Lock.Builder
no longers allow to customize Lock's theme using the method withTheme(Theme)
since using Android themes is preferable.
Also for all non-database authentication will use Proof Key for Code Exchange by default so your client type in Auth0 dashboard must be Native
.