auth0_lib: ^0.5.2 copied to clipboard
Flutter toolkit for Auth0 API and web pkce flow authentication. Forked: https://github.com/devdennysegura/flutter-auth0
v0.5.2 (2019-05-03) #
- Add iOS pluginClass to pubspec.yaml to improve support on iOS
v0.5.1 (2019-05-02) #
- Fix crash android app. issue #40
- Rename lib from flutter_auth0 to auth0_lib
Note: forked from https://github.com/devdennysegura/flutter-auth0
v0.5.0 (2019-08-09) #
- parameter to use auth0 authentication
- users handler
- get user info
- update user info
v0.3.1 (2019-08-09) #
- pub.dev fixes
v0.3.0 (2019-08-09) #
- blank login page
v0.2.2 (2019-08-08) #
- minor fixes
v0.2.1 (2019-01-31) #
- Expiration token in seconds.
v0.2.0 (2019-01-30) #
- Error handler when sign-in/sign-up.
v0.1.0 (2019-01-10) #
- Refresh token integrated.
- directory layout was change.
v0.0.2 (2018-12-03) #
Using Authorization Code flow with PKCE #
Callback URL(s) #
Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 routes your application back to this URL and appends additional parameters to it, including a token. Since callback URLs can be manipulated, you will need to add this URL to your Application's Allowed Callback URLs for security. This will enable Auth0 to recognize these URLs as valid. If omitted, authentication will not be successful.
Go to the Auth0 Dashboard, select your application and make sure that Allowed Callback URLs contains the following:
To use #
In the file
android/app/src/main/AndroidManifest.xml you must make sure the MainActivity of the app has a launchMode value of
singleTask and add the following activity:
So if you have
samples.auth0.com as your Auth0 domain you would have the following MainActivity configuration:
Create the file RedirectUriReceiver.java
Inside the ios folder find the file AppDelegate.[swift|m] add the following to it
ios folder open the
Info.plist and locate the value for
and then register a URL type entry using the value of
CFBundleIdentifier as the value of
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>None</string> <key>CFBundleURLName</key> <string>auth0</string> <key>CFBundleURLSchemes</key> <array> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> </array> </dict> </array>
v0.0.1 (2018-10-31) #
A Flutter plugin to use the Auth0 API.
Note: This plugin is still under development, and some APIs might not be available yet. Feedback and Pull Requests are most welcome!
To use this plugin, add
auth0_lib as a dependency in your pubspec.yaml file.
SignIn with email and password #
To signin instance auth0 using
auth0-domain and call signInWithEmailAndPassword function with email and password as params
final auth = new Auth0(clientId: 'your-client-id', domain: 'your-domain'); Auth0User user = await auth.passwordRealm( username: 'username/email', password: 'password', realm: 'Username-Password-Authentication');