-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Failing tests of Identity Server module because of shared tempkey.rsa #3194
Comments
hi @gterdem You can try using |
During unit testing, files may be locked by other unit tests. |
@maliming Thanks, |
Well, easier way is seems not create
However this may cause clients to re-signin when identityserver is restarted as stated in this issue @hikalkan @maliming the best way is to override/set |
hi @gterdem Please refer to #1749 (comment) |
thanks @maliming
Doesn't seem to be overriding the validator keys. |
@gterdem Maybe this works. public class AbpIdentityServerTestBaseModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpIdentityServerBuilderOptions>(options =>
{
options.AddDeveloperSigningCredential = false;
});
PreConfigure<IIdentityServerBuilder>(identityServerBuilder =>
{
identityServerBuilder.AddDeveloperSigningCredential(persistKey: false, filename: Guid.NewGuid().ToString());
});
}
} |
@maliming Cheers. Works pretty fine. Sent PR about it. |
Is there any way to use an in-memory tempkey instead of a shared file?
The text was updated successfully, but these errors were encountered: