We are working on a project which uses Microsoft Graph SDK to implement Excel/OneDrive related functionalities. We have a use-case where we need to serialize and deserialize the IGraphServiceClient
client reference/object.
We tried to deserialize the object but we're getting a NotSerializableException
exception. We were exploring SDK and find ISerializer.java
class but unable to use it in serialization/Deserialization.
Could you please help us how can we get over this issue?
UsernamePasswordProvider authProvider =
new UsernamePasswordProvider(clientId, scopes, userName, password, null, tenantid, clientSecret);
IGraphServiceClient client= GraphServiceClient
.builder()
.authenticationProvider((IAuthenticationProvider) authProvider).buildClient());