Closed dewebeloper closed 5 months ago
Looks like you are trying to configure opendiddict like for any other web app, even though you shouldn't have to do anything like this since the modules already do that for you.
Summoning @kevinchalet
@lahma what have you broken again? (options.UseQuartz();
)
@lahma what have you broken again? (
options.UseQuartz();
)
Odd to see the library mentioned that I actually should concentrate on 🤪
@sebastienros that configuration is best I can get. I tried to remove
services.AddControllersWithViews();
and to remove
app.UseEndpoints(options =>
{
options.MapControllers();
options.MapDefaultControllerRoute();
});
also tried to remove line byline, but in any way was not able to complete login operation.
Looks like you are trying to configure opendiddict like for any other web app, even though you shouldn't have to do anything like this since the modules already do that for you.
I agree. Using OpenIddict in parallel to OrchardCore (instead of using the native module) should work, as long as you don't try to do anything OpenIddict-related in an OrchardCore module. No need so say it's not something I've tested, so... 😅
That said, it's not specific to OpenIddict: as soon as you register some complex stuff at the host level, it's likely you'll see some side effects affecting OrchardCore or its modules.
FWIW, I'm not sure the symptom you describe is caused/related to OpenIddict. It seems like an issue with the fact you're using app.UseEndpoints()
+ options.MapControllers()
at the host level, which may import the OC controllers in the MVC parts but without the infrastructure types normally registered by OC (probably a MatcherPolicy
in this specific case)... and cause such issues.
@kevinchalet @sebastienros is there any other way (configuration) how I can achieve my scenario?
@dewebeloper
is there any other way (configuration) how I can achieve my scenario
I'm trying ti implement Decouplecd CMS with OpenIdDict identity implementation
Assuming you are trying to achieve the first statement, then look in the documentation on how to do it using the existing modules (OpenIdDict ones). I think there are also some blog posts external to Orchard showing it (links appreciated if someone has them).
I'm trying ti implement Decouplecd CMS with OpenIdDict identity implementation. According to https://github.com/OrchardCMS/OrchardCore/issues/3900 that is possible.
Idea is to use custom identity for registered user and OC users just to decoupled CMS.
I use OpenIdDict example from https://github.com/openiddict/openiddict-core/tree/dev/sandbox and just followed Creating a new decoupled CMS Website.
On the end I finished with
And this approach works fine with OpenIDDIct. I was able to redirect to OpenIdDict server and login and get data from resource controller. However, there is issue when I try to go to /admin in order to access OC admin page. There I get
Anybody has idea what can be changed in order to make this works?