Skip to content
Snippets Groups Projects

Mobile app initial implementation.

Merged Igor Markin requested to merge 3-android-mobile-app-web-view into master
2 files
+ 18
16
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 7
6
@@ -20,7 +20,6 @@ class Home extends StatefulWidget {
const hosts = [
'https://rosengeorgiev.dev.vereign.com',
'https://borisdimitrov.dev.vereign.com',
'https://app.vereign.com',
'https://integration.vereign.com',
'https://staging.vereign.com',
'https://demo1.vereign.com',
@@ -39,7 +38,7 @@ const hosts = [
];
class _HomeState extends State<Home> {
String _host = Config.appFlavor == Flavor.DEVELOPMENT ? hosts[0] : APP_HOST;
String _host = Config.appFlavor == Flavor.DEVELOPMENT ? hosts[0] : Config.DEFAULT_APP_HOST;
@override
initState() {
@@ -104,15 +103,17 @@ class _HomeState extends State<Home> {
}
startOAuth() {
var params = Config.getOAuthParams(host: _host);
FlutterAppAuthWrapper.startAuth(
AuthConfig(
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
redirectUrl: REDIRECT_URL,
clientId: params["clientId"],
clientSecret: params["clientSecret"],
redirectUrl: params["redirectUrl"],
state: "login",
prompt: "consent",
endpoint: AuthEndpoint(
auth: AUTH_ENDPOINT, token: TOKEN_ENDPOINT),
auth: params["authEndpoint"], token: params["tokenEndpoint"]),
scopes: [
"user_account_status",
"user_territory",
Loading