I'm finding using GraphQL cumbersome on my front end. All I'm trying to do is a couple of queries: 1) Get a list of blog posts with "summary" fields (ie Title, author, etc); 2) Get a specific blog post with "detail" fields (ie Title, body, etc), as well as the post before and after the one I'm querying for.
Using GraphQL sucks because of all the "drilling down" you have to do on the results; I can map the results to another model, but what a pain. Anyone know of the best way to do this without GraphQL? I'm willing to implement a web API, but do I use Queries or what to actually get the data I need? I know I can use YesSQL directly, but how would I map a blog post to a model since "Blog Post" isn't a class?
exec sp_executesql N'SELECT TOP (1) [OBXPontoonMan_Document].* FROM [OBXPontoonMan_Document] INNER JOIN [OBXPontoonMan_UserIndex] AS [UserIndex_a1] ON [UserIndex_a1].[DocumentId] = [OBXPontoonMan_Document].[Id] WHERE ([UserIndex_a1].[NormalizedUserName] = @p0)',N'@p0 nvarchar(4000)',@p0=N'TOBY@U****S.COM'
result = await _signInManager.PasswordSignInAsync(user, "pwd", true, lockoutOnFailure: false);
2021-06-15 19:40:07.1782|OBXPontoonMan|00-210ccfb003c4134b8561b64719afa138-420d14b2bdb9fc42-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request 2021-06-15 19:40:07.3318|OBXPontoonMan|00-210ccfb003c4134b8561b64719afa138-420d14b2bdb9fc42-00||OrchardCore.Users.Controllers.AccountController|INFO|User logged in. 2021-06-15 19:40:07.4117|OBXPontoonMan|00-e07b67d3753f5f42a02ea69534fd5a53-62f0050707be1b47-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request 2021-06-15 19:40:07.4117|OBXPontoonMan|00-b17fbf83dcf0a848b5ed03a848a1e9c8-e8489671c0583a45-00||OrchardCore.Modules.ModularTenantRouterMiddleware|INFO|Begin Routing Request
await _defaultContentsAdminListFilter.FilterAsync(filteroptions, query, null);
Thank you! @kevinchalet That solved that issue. Now I'm logged into Wordpress. Wow! I added the scopes email profile openid in Orchard-Core.
But I have really no idea about how/where to edit the Orchard-Core full user profiles? In Admin under profile I see ony username + email + Roles, no chance to add an street address, surname, name etc. And in the scope editor I have no idea how to link these scopes to thing "allowed to share".
Any hint would really be helpful. Thanks.
@kevinchalet If you have any idea why for "Logout" (in Wordpress) it redirects to Orchard Core but there is the error message:
"The specified 'post_logout_redirect_uri' is invalid."
I have specified as Logout Endpoint <AuthServer>//connect/logout and in the orchard-openid-application-setup I tried to enable/disable "Allow Logout Endpoint" - no change...
Post Logout URI empty or not empty, no change, either.