oauth2_client/models.py
def validate_jwt_grant_data(self):
        """
        If JWT token bearer grant is used, subject has to be specified.
        Details: https://tools.ietf.org/html/rfc7523#section-3

        Returns:
            None:

        Raises:
            ValidationError: 1) when subject not specified
        """
        subject = self.extra_settings.get('subject')
        if self.authorization_grant_type == Application.GRANT_JWT_BEARER and not subject:
            msg = (
                "grant_type={} requires `subject` to be specified in app.extra_settings['subject']. "
                "See here for more information: https://tools.ietf.org/html/rfc7523#section-3"
                .format(Application.GRANT_JWT_BEARER)
            )
            raise ValidationError(msg)

        If JWT token bearer grant is used, subject has to be specified.
        Details: https://tools.ietf.org/html/rfc7523#section-3

        Returns:
            None:

        Raises:
            ValidationError: 1) when subject not specified
        
If JWT token bearer grant is used, subject has to be specified.
If JWT token bearer grant is used subject has to be specified .
def validate_jwt_grant_data(self):
        subject = self.extra_settings.get('subject')
        if self.authorization_grant_type == Application.GRANT_JWT_BEARER and not subject:
            msg = (
                "grant_type={} requires `subject` to be specified in app.extra_settings['subject']. "
                "See here for more information: https://tools.ietf.org/html/rfc7523#section-3"
                .format(Application.GRANT_JWT_BEARER)
            )
            raise ValidationError(msg)
def validate_jwt_grant_data ( self ) : subject = self . extra_settings . get ( 'subject' ) if self . authorization_grant_type == Application . GRANT_JWT_BEARER and not subject : msg = ( "grant_type={} requires `subject` to be specified in app.extra_settings['subject']. " "See here for more information: https://tools.ietf.org/html/rfc7523#section-3" . format ( Application . GRANT_JWT_BEARER ) ) raise ValidationError ( msg )
If JWT token bearer grant is used, subject has to be specified.
If JWT token bearer grant is used subject has to be specified .
"""
        If JWT token bearer grant is used, subject has to be specified.
        Details: https://tools.ietf.org/html/rfc7523#section-3

        Returns:
            None:

        Raises:
            ValidationError: 1) when subject not specified
        """
None
None
1) when subject not specified
1 ) when subject not specified
ValidationError
self