From 186aebdc5eae514b8b6f1c239addab901398d4f3 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 8 Aug 2024 15:21:24 +0200 Subject: [PATCH] fix: default redirectUri with port 80 does not work on linux (#116) https://github.com/appsup-dart/openid_client/issues/116 --- lib/src/openid.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/openid.dart b/lib/src/openid.dart index b37221d..d3db6a2 100644 --- a/lib/src/openid.dart +++ b/lib/src/openid.dart @@ -391,7 +391,7 @@ class Flow { List scopes = const ['openid', 'profile', 'email']}) : state = state ?? _randomString(20), _additionalParameters = {...?additionalParameters}, - redirectUri = redirectUri ?? Uri.parse('http://localhost') { + redirectUri = redirectUri ?? Uri.parse('http://localhost:8081') { var supportedScopes = client.issuer.metadata.scopesSupported ?? []; for (var s in scopes) { if (supportedScopes.contains(s)) {