Skip to content

Commit

Permalink
integrate default webauth within the configuration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Jul 7, 2017
1 parent def9515 commit ed98496
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ If you request a different scheme you must replace the `android:scheme` property
> In versions 1.8.0 and before you had to define the **intent-filter** inside your activity to capture the result in the `onNewIntent` method and call `WebAuthProvider.resume()` with the received intent. This call is no longer required for versions greater than 1.8.0 as it's now done for you by the library.

Finally, authenticate by showing the **Auth0 Hosted Login Page**:

```java
WebAuthProvider.init(account)
.start(MainActivity.this, authCallback);
```

If you've followed the configuration steps, the authentication result will be redirected from the browser to your application and you'll receive it in the Callback.


##### A note about App Deep Linking:

Currently, the default scheme used in the Callback Uri is `https`. This works best for Android API 23 or newer if you're using [Android App Links](https://developer.android.com/training/app-links/index.html), but in previous Android versions this may show the intent chooser dialog prompting the user to chose either your application or the browser. You can change this behaviour by using a custom unique scheme, so that the OS opens directly the link with your app.
Expand All @@ -164,15 +174,6 @@ WebAuthProvider.init(account)
```


#### Authenticate without an specific connection

Simply don't specify any custom connection and the Lock web widget will show.

```java
WebAuthProvider.init(account)
.start(MainActivity.this, authCallback);
```

#### Authenticate with any Auth0 connection

```java
Expand Down

0 comments on commit ed98496

Please sign in to comment.