I am trying v6.9.1 Core+Angular. I tested Web Public project and found a bug (maybe). On the top-right of screen, the language dropdown does not work. The pulldown list does not show up while clicking the arrow button.
Samething happens on all tabs and links on the page. It just show the link URL on address bar, but the page does not refreshed. For example, if I click the "Document" tab on the home page, the URL changed as http://localhost:45776/#tab-2, but the page still shows the "home".
Maybe the javascript file is missed or wrong linked?
I've tried to run "npm run create-bundles", Update Bundles, and Restore packages, but no help.
I am using Core+Angular v6.7.0 and trying to connect it to our on-premises ADFS. My ADFS on server is working. I can directly sign-on from page: https://MyDomain/adfs/ls/idpinitiatedsignon, but I am not sure how to configure AspNetZero to connect to it. I tried some guess work, but all failed to work. Do you have a step-by-step instruction about it?
I guess the "WsFederation" section in appsettings.json is about it, but I am not sure the following:
Thanks,
I just download Core+Angular v6.7.0. When I yarn the Angular package, I got the following message. It seems some problems around "[email protected]" and " > @swimlane/[email protected]". Please advise how to fix. Thanks,
yarn install v1.13.0 [1/4] Resolving packages... [2/4] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @swimlane/[email protected]" has unmet peer dependency "d3@^4.10.2". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-array@^1.2.1". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-brush@^1.0.4". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-color@^1.0.3". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-force@^1.1.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-format@^1.2.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-hierarchy@^1.1.5". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-interpolate@^1.1.5". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-scale@^1.0.6". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-selection@^1.1.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-shape@^1.2.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-time-format@^2.1.0". [4/4] Building fresh packages... Done in 76.89s.
It sounds not too easy in my case.
Never mind. It's not a big deal to me for now. It is just an alternative of GraphQL implement for an endpoint of mine.
I noticed "GraphQL endpoint" is on the top 2nd on the road map. Can I expect it to release in a couple of months?
Thanks,
I am not too sure. While I use the swag to test, it works fine (i.e. the property "Name" shows as "name" on screen). However, after I refresh service on Angualr (Angular/nswag/refresh), I need to change "name" to "Name" in my Angular side code.
The only negative thing is that, after I use <object>
, I have to keep the same Pascal Case or Camel Case for field names on both server side (C#) and client side (TypeScript, Angular).
For example, the “Person” type has a property "Name". When I use the specific type such as
Task<Person> GetPeople();
It automatically changed to "name" on client side and back to "Name" on server side. After I changed to
Task<object> GetPeople();
I have to keep "Name" on client side. Otherwise, it throw an exception such as "'Person' does not contain a definition of 'name'"
Is there an easy way to keep the behavior before (Pascal Case on server side code and camel Case on client side code)?
Thanks,
Perfict! It works as expected.
Thanks,
I am using Core + Angular version. Currently, all of AppService methods return a specific type, such as: ListResultDto<PersonListDto> GetPeople(GetPeopleInput input){...}
In my application, the type PersonListDto has many properties. Now, my users want to get partial of these peroperties (e.g. only FirstName and Address). I surely can make another type and method for this request, such as: ListResultDto<NameAddresssListDto> GetPeople(GetPeopleInput input){...}
However, users want to freely choose properties from PersonListDto type, and get a return only includes the properties accordingly. So, I need to make a method to return a generic type dynamically. I need a method, such as: ListResultDto<T> GetPeople(GetPeopleInput input){...}
For example, if the GetPeopleInput contains "fields = 'FirstName', 'Address'", the <T> should be a type only contains two peroperties, FirstName and Address.
Is it possible? If so, can you provide an sample code?
Thanks,
Thank you for clarification!
I couldn't search out TryLoginFromExternalAuthenticationSources in my copies. Is this encapsulated in ABP? Can I see the source code about it?
I found the problem. Those LDAP users have no email record on AD. After I added it, the error is gone.
Here is a new issue I found after that. After I added a test email on AD, that user can login, and AbpUsers was inserted a new user record with a value in both fields of "EmailAddress" and "NormalizedEmailAddresss". It is as expected. However, after the we changed the email address in AD and user login again, only the AbpUsers.EmailAddress changed accordingly, and the NormalizedEmailAddresss still keeps the old value. This causes the user cannot login with his email (instead of username). I have to manually edit the user settings (just open the edit form, do not change anything, and click "save" button) to keep these two fields synched.
I think this is a bug. The value of both of "EmailAddress" and "NormalizedEmailAddresss" should be always syched under any circumstances, right?