diff --git a/sdk/platformconfig.go b/sdk/platformconfig.go index f652cf334..1b780b099 100644 --- a/sdk/platformconfig.go +++ b/sdk/platformconfig.go @@ -3,7 +3,7 @@ package sdk import "log/slog" func (s SDK) PlatformIssuer() string { - value, ok := s.platformConfiguration["platform_issuer"].(string) + value, ok := s.config.platformConfiguration["platform_issuer"].(string) if !ok { slog.Warn("platform_issuer not found in platform configuration") } diff --git a/sdk/sdk.go b/sdk/sdk.go index 2a9cf98f9..0243ca8d2 100644 --- a/sdk/sdk.go +++ b/sdk/sdk.go @@ -45,7 +45,6 @@ type SDK struct { config conn *grpc.ClientConn dialOptions []grpc.DialOption - kasSessionKey ocrypto.RsaKeyPair tokenSource auth.AccessTokenSource Namespaces namespaces.NamespaceServiceClient Attributes attributes.AttributesServiceClient @@ -54,7 +53,6 @@ type SDK struct { KeyAccessServerRegistry kasregistry.KeyAccessServerRegistryServiceClient Authorization authorization.AuthorizationServiceClient EntityResoution entityresolution.EntityResolutionServiceClient - platformConfiguration PlatformConfiguration wellknownConfiguration wellknownconfiguration.WellKnownServiceClient } @@ -151,8 +149,6 @@ func New(platformEndpoint string, opts ...Option) (*SDK, error) { conn: defaultConn, dialOptions: dialOptions, tokenSource: accessTokenSource, - kasSessionKey: *cfg.kasSessionKey, - platformConfiguration: cfg.platformConfiguration, Attributes: attributes.NewAttributesServiceClient(selectConn(cfg.policyConn, defaultConn)), Namespaces: namespaces.NewNamespaceServiceClient(selectConn(cfg.policyConn, defaultConn)), ResourceMapping: resourcemapping.NewResourceMappingServiceClient(selectConn(cfg.policyConn, defaultConn)), diff --git a/sdk/tdf.go b/sdk/tdf.go index 4aa13cee5..9f7ec8335 100644 --- a/sdk/tdf.go +++ b/sdk/tdf.go @@ -388,7 +388,7 @@ func (s SDK) LoadTDF(reader io.ReadSeeker) (*Reader, error) { dialOptions: s.dialOptions, tdfReader: tdfReader, manifest: *manifestObj, - kasSessionKey: s.kasSessionKey, + kasSessionKey: *s.config.kasSessionKey, }, nil }