Simple Flutter project demonstrates basic authentication flows with PlusAuth
Explore the PlusAuth Flutter docs »
Table of Contents
It is a very simple Flutter project demonstrating basic authentication flows such as register, login, and logout. To keep things simple, we used Flutter AppAuth for authentication.
Before running the project, you must first follow these steps:
- Create a PlusAuth account and a tenant at PlusAuth Dashboard
- Navigate to Clients tab and create a client of type
Native Application
- Go to the details page of the client that you've just created and set the following fields as:
- Redirect Uris:
com.plusauth.flutterexample:/oauthredirect/login
- Post Logout Redirect Uris:
com.plusauth.flutterexample:/
Finally, note your Client Id and domain(e.g., https://example.plusauth.com) for app configuration on the next step.
- Android Installation
cd plusauth-flutter-starter
flutter pub get
- iOS Installation
cd plusauth-flutter-starter
flutter pub get
cd ios
pod install
Edit the main.dart
class under the lib
folder, change _clientId
and _issuer
fields with your Client Id and PlusAuth domain.
That's all! Hit the 'Run' button in Android Studio or XCode to start the app.
This project is licensed under the MIT license. See the LICENSE file for more info.
PlusAuth helps individuals, teams, and organizations to implement authorization and authentication systems in a secure, flexible and easy way.