Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-compile IdentityModel Protection Level #2

Closed
cubin03 opened this issue Dec 17, 2018 · 2 comments
Closed

Re-compile IdentityModel Protection Level #2

cubin03 opened this issue Dec 17, 2018 · 2 comments

Comments

@cubin03
Copy link

cubin03 commented Dec 17, 2018

Following the steps provided:
"Unity does not support nuget nicely, so you must clone and compile IdentityModel.OidcClient2 solution using Visual Studio 2017.
Copy the release binaries from IdentityModel.OidcClient/bin/release/net452 to a folder in your Unity project's Assets folder.
Delete System.Runtime.InteropServices.RuntimeInformation.dll as this DLL is not compatible with Unity."

I needed to change the "code id_token" strings to "code" and attempted a recompile. Dragging in the new binaries to Unity I have compile error for LogSerializer

"Assets/UnityAuthClient.cs(23,13): error CS0122: `IdentityModel.OidcClient.Infrastructure.LogSerializer' is inaccessible due to its protection level"

Please advise

@peterhorsley
Copy link
Owner

@cubin03 that error will appear if you are not compiling the latest IdentityModel.OidcClient2 repo as there was a code change that went into that repo not too long ago relating to the LogSerializer. I just cloned and it built successfully in VS2017, and copied the binaries to Unity and do not get this error.

Not sure what your change to "code id_token" is doing or how it is related.

@cubin03
Copy link
Author

cubin03 commented Jan 31, 2019

I was able to resolve my issue a while back. Thank you for response though. You can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants