parameters: (self)
return_statement: return pn_sasl_get_authorization(self._sasl)
docstring: Retrieve the requested authorization user. This is usually used at the the
          server end to find the name of any requested authorization user.
  
          If the peer has not requested an authorization user or the SASL mechanism has
          no capability to transport an authorization id this will be the same as the
          authenticated user.
  
          Note that it is the role of the server to ensure that the authenticated user is
          actually allowed to act as the requested authorization user.
  
          If :meth:`outcome` returns a value other than :const:`OK`, then
          there will be no user to return. The returned value is only reliable
          after the ``PN_TRANSPORT_AUTHENTICATED`` event has been received.
  
          :rtype: * If the SASL layer was not negotiated then ``None`` is returned.
                  * If the ``ANONYMOUS`` mechanism is used then the user will be
                    ``"anonymous"``.
                  * Otherwise a string containing the user is
                    returned.
docstring_summary: Retrieve the requested authorization user. This is usually used at the the
          server end to find the name of any requested authorization user.
docstring_tokens: Retrieve the requested authorization user . This is usually used at the the server end to find the name of any requested authorization user .
function: def authorization(self) -> Optional[str]:
          """
          Retrieve the requested authorization user. This is usually used at the the
          server end to find the name of any requested authorization user.
  
          If the peer has not requested an authorization user or the SASL mechanism has
          no capability to transport an authorization id this will be the same as the
          authenticated user.
  
          Note that it is the role of the server to ensure that the authenticated user is
          actually allowed to act as the requested authorization user.
  
          If :meth:`outcome` returns a value other than :const:`OK`, then
          there will be no user to return. The returned value is only reliable
          after the ``PN_TRANSPORT_AUTHENTICATED`` event has been received.
  
          :rtype: * If the SASL layer was not negotiated then ``None`` is returned.
                  * If the ``ANONYMOUS`` mechanism is used then the user will be
                    ``"anonymous"``.
                  * Otherwise a string containing the user is
                    returned.
          """
          return pn_sasl_get_authorization(self._sasl)
function_tokens: def authorization ( self ) -> Optional [ str ] : return pn_sasl_get_authorization ( self . _sasl )