fixes:
- pub.dev fixes
fixes:
- blank login page
fixes:
- minor fixes
fixes:
- Expiration token in seconds.
enhances:
- Error handler when sign-in/sign-up.
features:
- Refresh token integrated.
enhances:
- directory layout was change.
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:
{YOUR_BUNDLE_IDENTIFIER}://${YOUR_AUTH0_DOMAIN}/ios/{YOUR_BUNDLE_IDENTIFIER}/callback
{YOUR_APP_PACKAGE_NAME}://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback
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
Inside the ios
folder open the Info.plist
and locate the value for CFBundleIdentifier
, e.g.
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
and then register a URL type entry using the value of CFBundleIdentifier
as the value of CFBundleURLSchemes
<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>
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 flutter_auth0
as a dependency in your pubspec.yaml file.
To signin instance auth0 using auth0-client-id
and 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');