Closed (fixed)
Project:
External Authentication
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 May 2021 at 18:57 UTC
Updated:
17 Sep 2021 at 12:29 UTC
Jump to comment: Most recent
Comments
Comment #3
roderikComment #4
svendecabooterThank you for the MR!
When I try to review this change, I'm getting a fatal error when trying to render the authmap view though:
Exception: No entity type for field delete on view authmap in Drupal\views\Plugin\views\HandlerBase->getEntityType() (regel 718 van /app/web/core/modules/views/src/Plugin/views/HandlerBase.php).Not sure if this is related to something in my test install or not. Will try to debug further.
If this feature gets merged, will this conflict with the View in Samlauth module? I guess not?
Comment #5
svendecabooterComment #6
svendecabooterComment #7
roderikThank you.
This shouldn't conflict with the View in the Samlauth module. (At least not as far as I know. I made copies of all files so they are independent, and I plan to remove the Samlauth view when starting to depend on a newer Externalauth module.
Re. the
No entity type for field deleteerror:By now I think I have a good enough overview to make a D10 Core issue / merge request that will simplify this and create a 'link base class for simple entity-less tables'. Which will (in D10) enable removing the majority of code from AuthMapDeleteLink. But I'll only create that if someone promises to review it :-) and also, not immediately.
Comment #8
roderikI didn't test this on a multilanguage site, but feel confident enough that the last commit at least improves things, so I'll dare to set Needs Review again.
Comment #9
roderikSo actually...
authmap.deletewould come in the place of samlauth's field. That breaks things somehow, because of the new link path (/admin/people/authmap/{provider}/{uid}/delete): samlauth's view freaks out because it cannot provide/see any value for {provider}. In conclusion: while this is not your problem, I hope we can renameauthmap.deletetoauthmap.delete_link, which will make the samlauth view not break upon upgrading externalauth.(Also I see that that field's plugin_id was wrong in the exported view config: I have no idea why the view's export made it
entity_link_deletebefore. I'm chalking that up to some internal but harmless bug in Views code.)Comment #11
svendecabooterThanks, this seems to work perfectly now.
I tested this in combination with the latest dev branch 8.x-3.x of samlauth, and there seems to be no conflict.