|
| 1 | +======================================== |
| 2 | +AWS Process Credential Providers Plug-in |
| 3 | +======================================== |
| 4 | + |
| 5 | +.. image:: https://travis-ci.org/awslabs/awsprocesscreds.svg?branch=master |
| 6 | + :target: https://travis-ci.org/awslabs/awsprocesscreds |
| 7 | + |
| 8 | + |
| 9 | +This document covers what is is to be a SAML provider plug-in. |
| 10 | + |
| 11 | +Generally, a plug-in refers to any class registered to the entry point group |
| 12 | +'saml_form_authenticators' and which also conforms to the SAMLAuthenticator |
| 13 | +interface. See Requirements for more constraints. |
| 14 | + |
| 15 | +Example: |
| 16 | + |
| 17 | + entry_points={ |
| 18 | + 'saml_form_authenticators': [ |
| 19 | + 'example = plugin.example:ExampleFormsBasedAuthenticator', |
| 20 | + } |
| 21 | + |
| 22 | +For reference, the file setup.py in this project registers both default |
| 23 | +providers as plug-ins. |
| 24 | + |
| 25 | + |
| 26 | +General Plug-in Overview |
| 27 | +------------------------ |
| 28 | + |
| 29 | +At runtime, all registered plug-in names retrieved using pkg_resources will be |
| 30 | +matched against the user supplied value for -p (--provider). An exact match |
| 31 | +will instatiate that class, no match will throw an unspupported error. |
| 32 | + |
| 33 | +Inheritance from SAMLAuthenticator is not required. |
| 34 | + |
| 35 | + |
| 36 | +Requirements |
| 37 | +------------ |
| 38 | + |
| 39 | +Generally this assume an installed module. |
| 40 | + |
| 41 | +* Plug-in has an entry point registered under group 'saml_form_authenticators' |
| 42 | +* Class implements the awsprocesscreds.saml:SAMLAuthenticator specification |
| 43 | + |
| 44 | + |
| 45 | +Futher Information |
| 46 | +------------------ |
| 47 | + |
| 48 | +Both of the SAML authenticators shipped with the product utilize the plug-in |
| 49 | +loading process. If you are looking at how to implement one to support your |
| 50 | +own business requirements then it is suggested to review both those classes. |
0 commit comments