Skip to content

Commit

Permalink
fix: Alwasys use oauth url for status list #3040
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 31, 2024
1 parent 0ef7731 commit 8248f3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,16 @@ class OIDC4VC {
OpenIdConfiguration openIdConfiguration;

var isAuthorizationServer = false;
var useOAuthAuthorizationServer = useOAuthAuthorizationServerLink;

if (fromStatusList) {
///as this is not a VC issuer
isAuthorizationServer = true;

/// the status list server is a standalone server. the endpoint
/// is /.well-known/openid-configuration'
/// so, useOAuthAuthorizationServerLink: false
useOAuthAuthorizationServer = false;
}

final openIdConfigurationData = await getOpenIdConfig(
Expand All @@ -841,7 +847,7 @@ class OIDC4VC {
isCachingEnabled: isCachingEnabled,
dio: dio,
secureStorage: secureStorage,
useOAuthAuthorizationServerLink: useOAuthAuthorizationServerLink,
useOAuthAuthorizationServerLink: useOAuthAuthorizationServer,
);

openIdConfiguration =
Expand All @@ -856,7 +862,7 @@ class OIDC4VC {
isCachingEnabled: isCachingEnabled,
dio: dio,
secureStorage: secureStorage,
useOAuthAuthorizationServerLink: useOAuthAuthorizationServerLink,
useOAuthAuthorizationServerLink: useOAuthAuthorizationServer,
);
openIdConfiguration =
OpenIdConfiguration.fromJson(openIdConfigurationData);
Expand Down

0 comments on commit 8248f3e

Please sign in to comment.