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
+ 13
12
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
11
@@ -17,13 +17,6 @@ class Home extends StatefulWidget {
_HomeState createState() => _HomeState();
}
String clientId = "222222";
String clientSecret = "22222222";
String redirectURL = "app://com.vereign.app/oauth2";
String authEndpoint = "$APP_HOST/api/oauth2/authorize";
String tokenEndpoint = "$APP_HOST/api/oauth2/token";
class _HomeState extends State<Home> {
@override
initState() {
@@ -90,13 +83,13 @@ class _HomeState extends State<Home> {
startOAuth() {
FlutterAppAuthWrapper.startAuth(
AuthConfig(
clientId: clientId,
clientSecret: clientSecret,
redirectUrl: redirectURL,
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
redirectUrl: REDIRECT_URL,
state: "login",
prompt: "consent",
endpoint: AuthEndpoint(
auth: authEndpoint, token: tokenEndpoint),
auth: AUTH_ENDPOINT, token: TOKEN_ENDPOINT),
scopes: [
"user_account_status",
"user_territory",
Loading