The MSAL library for Go is part of the Microsoft identity platform for developers (formerly named Azure AD) v2.0. It enables you to acquire security tokens to call protected APIs. It uses industry standard OAuth2 and OpenID Connect.
Unmarshal returns the error Unmarshal(*storage.InMemoryContract) only supports structs that have the field AdditionalFields or implements json.Unmarshaler. And that's spot on, storage.InMemoryContract doesn't have an AdditionalFields field.
Easy to repro with a unit test in
partitioned_storage_test.go
:Unmarshal
returns the errorUnmarshal(*storage.InMemoryContract) only supports structs that have the field AdditionalFields or implements json.Unmarshaler
. And that's spot on,storage.InMemoryContract
doesn't have anAdditionalFields
field.