@classmethod
def apply_scopes(cls, auth_obj, filtered_scopes):
    """Link scopes to an auth object: Token or AuthorizationCode."""
    if auth_obj is not None:
        for scope in filtered_scopes:
            auth_obj.scopes.add(scope)
