{"repo":"Clancey/simple_auth","free":true,"listed":false,"github":"https://github.com/Clancey/simple_auth","clone":"git clone https://github.com/Clancey/simple_auth.git","description":"The Simplest way to Authenticate in Flutter","language":"Dart","stars":354,"topics":["flutter","flutter-plugin","dart","dart-library","authentication"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Most apps need to make API calls. Every API needs authentication, yet no developer wants to deal with authentication. Simple Auth embeds authentication into the API so you dont need to deal with it. This is a port of Clancey.SimpleAuth for Dart and Flutter The network/api part including the generator was based off of Chopper by Hadrien Lejard iOS: Android: Providers Current Built in Providers - Azure Active Directory - Amazon - Dropbox - Facebook - Github - Google - Linked In - Microsoft Live Connect - Keycloak - And of course any standard OAuth2/Basic Auth server. Usage That's it! If the user is not logged in, they will automatically be prompted. If their credentials are cached from a previous session, the api call proceeds! Expired tokens even automatically refresh. Flutter Setup Call SimpleAuthFlutter.init(); in your Main.Dart. Now Simple Auth can automatically present your login UI Redirect Google requires the following redirect: com.googleusercontent.apps.YOUR CLIENT ID Simple Auth by default uses SFSafari on iOS and Chrome Tabs on Android. This means normal http redirects cannot work. You will need to register a custom scheme for your app as a redirect. For most providers, you can create whatever you want. i.e. com.myapp.foo:/redirct Android Manifest you would then add the following to your Android manifest For instagram, the above won't work, as it will only accept redirect URIs that start with https. Add the following instead: iOS & macOS on iOS you need something lik","default_branch":null,"files":null,"tree":[],"storefront":"/r/Clancey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Clancey/simple_auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}