I noticed that in release 1.6, this demo support adrms system. So I plan to use it in our company with our adrms service.
But the clientId and redirectUri confused me. For this console app, how to set clientId and redirectUri in the app.config file?
My environment: Our adrms system is configured with ADRMS MDE and ADFS and is working perfectly fine with Mac Office Word, Excel...
I tested to write random clientId and redirectUri, and run AddAdfsClient powershell command to add client settings as my config. When I run this demo in my environment, however, after I enter an user email, it throws Exception:
Microsoft.InformationProtection.Exceptions.NoAuthTokenException: Client application failed to provide authentication token for HTTP request. Failed with: System.AggregateException: 发生一个或多个错误。 --->
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: The browser based authentication dialog failed to complete. Reason: The server or proxy was not found.
And I find in the mip_data\mip\logs\mip_sdk.miplog, it says:
Info 2020-12-28 20:47:56.958 auth_info_store.cpp:76 mipsdk-dotnet-protection-quickstart (3108) "Failed to find OAuth2 challenge in cache. Domain: rmsservice.contoso.com IssuerId: ''" mipns::AuthInfoStore::FindChallenge 4940
Info 2020-12-28 20:47:56.958 auth_request_transformer.cpp:48 mipsdk-dotnet-protection-quickstart (3108) "Failed to get auth token from cached auth header. Failed with: [InternalError: 'Cannot parse empty auth header or request URL']" mipns::AuthRequestTransformer::TransformRequestPriorToInitialSend 4940
I noticed that in release 1.6, this demo support adrms system. So I plan to use it in our company with our adrms service.
But the clientId and redirectUri confused me. For this console app, how to set clientId and redirectUri in the app.config file?
My environment: Our adrms system is configured with ADRMS MDE and ADFS and is working perfectly fine with Mac Office Word, Excel...
I tested to write random clientId and redirectUri, and run AddAdfsClient powershell command to add client settings as my config. When I run this demo in my environment, however, after I enter an user email, it throws Exception:
And I find in the mip_data\mip\logs\mip_sdk.miplog, it says:
and finally
my/v1/templates
returns 401 unauthorized.I guess that's because the redirectUri isn't pointed to this quickstart demo thus it didn't bring the adfs token back. But how to set the redirectUri?
It confused me few weeks. Really appreciate for any help.
Thanks in advance.