diff options
| author | Michael Merickel <michael@merickel.org> | 2014-11-17 20:20:15 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2014-11-17 20:20:15 -0600 |
| commit | 3be89551889d87c5f7d86c18f2e92f03470ff4f9 (patch) | |
| tree | 01be54a1ee57f59260cd31e4189ce968656013c9 /docs/glossary.rst | |
| parent | 2b59a35c4b5ec0f7052aacce3ffa66ce74cbae56 (diff) | |
| parent | 170404ecddd2837b682f4af26575f03ccf456841 (diff) | |
| download | pyramid-3be89551889d87c5f7d86c18f2e92f03470ff4f9.tar.gz pyramid-3be89551889d87c5f7d86c18f2e92f03470ff4f9.tar.bz2 pyramid-3be89551889d87c5f7d86c18f2e92f03470ff4f9.zip | |
Merge pull request #1399 from Pylons/feature.security-docs-enhancements
security docs enhancements
Diffstat (limited to 'docs/glossary.rst')
| -rw-r--r-- | docs/glossary.rst | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/docs/glossary.rst b/docs/glossary.rst index ef7e9a9ae..01300a0be 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -286,13 +286,22 @@ Glossary :term:`authorization policy`. principal - A *principal* is a string or unicode object representing a userid - or a group id. It is provided by an :term:`authentication - policy`. For example, if a user had the user id "bob", and Bob - was part of two groups named "group foo" and "group bar", the - request might have information attached to it that would - indicate that Bob was represented by three principals: "bob", - "group foo" and "group bar". + A *principal* is a string or unicode object representing an + entity, typically a user or group. Principals are provided by an + :term:`authentication policy`. For example, if a user had the + :term:`userid` `"bob"`, and was part of two groups named `"group foo"` + and "group bar", the request might have information attached to + it that would indicate that Bob was represented by three + principals: `"bob"`, `"group foo"` and `"group bar"`. + + userid + A *userid* is a string or unicode object used to identify and + authenticate a real-world user (or client). A userid is + supplied to an :term:`authentication policy` in order to discover + the user's :term:`principals <principal>`. The default behavior + of the authentication policies :app:`Pyramid` provides is to + return the user's userid as a principal, but this is not strictly + necessary in custom policies that define their principals differently. authorization policy An authorization policy in :app:`Pyramid` terms is a bit of |
