Skip to content

Commit

Permalink
[refs #281898] Migrate code from pas.plugins.authomatic fork
Browse files Browse the repository at this point in the history
  • Loading branch information
david-batranu committed Dec 20, 2024
1 parent ec2fb18 commit dea26cd
Show file tree
Hide file tree
Showing 9 changed files with 469 additions and 98 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'z3c.jbot',
'plone.api>=1.8.4',
'plone.app.dexterity',
'pas.plugins.authomatic',
],
extras_require={
'test': [
Expand Down
Empty file.
28 changes: 28 additions & 0 deletions src/pas/plugins/eea/browser/add_plugin.pt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<h1 tal:replace="structure here/manage_page_header">Header</h1>

<h2>Add EEA Entra plugin</h2>

<p class="form-help">
Adds the EEA Entra plugin.
</p>

<form action="manage_addEEAEntraPlugin" method="POST">
<table>
<tr>
<td class="form-label"> Id </td>
<td> <input type="hidden" name="id" value="eea_entra"/> </td>
</tr>
<tr>
<td class="form-label"> Title </td>
<td> <input type="text" name="title" /> </td>
</tr>
<tr>
<td colspan="2">
<div class="form-element">
<input type="submit" value="submit"/>
</div>
</td>
</tr>
</table>
</form>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
1 change: 1 addition & 0 deletions src/pas/plugins/eea/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from zope.publisher.interfaces.browser import IDefaultBrowserLayer

DEFAULT_ID = "eea_entra"

class IPasPluginsEeaLayer(IDefaultBrowserLayer):
"""Marker interface that defines a browser layer."""
Loading

0 comments on commit dea26cd

Please sign in to comment.