Skip to content

Commit

Permalink
Skip HTTPS check for unsecure connections for attributes built 'onAtt…
Browse files Browse the repository at this point in the history
…achedToEngine' method. (#301)

Co-authored-by: Javier Puerto <[email protected]>
  • Loading branch information
jpuerto and Javier Puerto authored Feb 20, 2022
1 parent 03af6cc commit 63692f8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private void onAttachedToEngine(Context context, BinaryMessenger binaryMessenger
defaultAuthorizationService = new AuthorizationService(this.applicationContext);
AppAuthConfiguration.Builder authConfigBuilder = new AppAuthConfiguration.Builder();
authConfigBuilder.setConnectionBuilder(InsecureConnectionBuilder.INSTANCE);
authConfigBuilder.setSkipIssuerHttpsCheck(true);
insecureAuthorizationService = new AuthorizationService(applicationContext, authConfigBuilder.build());
final MethodChannel channel = new MethodChannel(binaryMessenger, "crossingthestreams.io/flutter_appauth");
channel.setMethodCallHandler(this);
Expand Down

0 comments on commit 63692f8

Please sign in to comment.