# US 2021/0342480 A1 · Authorization system using queries as authorization restrictions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342480 A1
- Document ID: US20210342480A1
- Status: Published application
- Kind: A1
- Application number: 16/864,132
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Michael J. Kogan; Shimon D. Gonen; Amruta Kulkarni; Gabriel Badescu
- Web page: https://patentgrep.com/patent/US20210342480A1

## CPC

- G06F 21/6254: {by anonymising data, e.g. decorrelating personal data from the owner's identification}
- G06F 16/144: {Query formulation}
- G06F 16/156: {Query results presentation}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- H04L 63/101: {Access control lists [ACL]}
- G06F 2221/2113: Multi-level security, e.g. mandatory access control
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for generating responses to queries from a client application are disclosed. One example method includes receiving a first query from the client application, determining an authorization context for the first query based at least in part on a set of authorization restrictions corresponding to the client application, generating a response to the first query based at least in part on an intermediate response generated by a query engine, the response redacted based at least in part on the authorization context, and providing the response to the client application.

## Claims

### Claim 1

A method for generating responses to queries from a client application, the method performed by an authorization system and comprising:
receiving a first query from the client application;
determining an authorization context for the first query based at least in part on a set of authorization restrictions corresponding to the client application;
generating a response to the first query based at least in part on an intermediate response generated by a query engine, the response redacted based at least in part on the authorization context; and
providing the response to the client application.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of authorization restrictions are expressed independently of the query engine.

### Claim 3 (depends on 1)

The method of claim 1, wherein the query engine is a GraphQL query engine.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first query is not an introspection query, and wherein the method further comprises:
generating a redacted query corresponding to the first query by redacting requests from the first query based at least in part on the set of authorization restrictions; and
wherein the response to the first query comprises a response to the redacted query.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating the response to the first query further comprises adding one or more authorization errors to the response corresponding to each of the redacted requests.

### Claim 6 (depends on 3)

The method of claim 3, wherein the first query is an introspection query, and wherein the method further comprises:
generating an unredacted response to the first query; and
generating the response to the first query by redacting one or more definitions from the unredacted response, the redactions based at least in part on the set of authorization restrictions.

### Claim 7 (depends on 1)

The method of claim 1, wherein the set of authorization restrictions define a subgraph of types and fields the client application is authorized to view.

### Claim 8 (depends on 7)

The method of claim 7, wherein the response to the first query corresponds to the subgraph defined by the set of authorization restrictions.

### Claim 9

An authorization system, comprising:
one or more processors; and
a memory storing instructions that, when executed by the one or more processors, cause the authorization system to perform operations comprising:
receiving a first query from a client application;
determining an authorization context for the first query based at least in part on a set of authorization restrictions corresponding to the client application;
generating a response to the first query based at least in part on an intermediate response generated by a query engine, the response redacted based at least in part on the authorization context; and
providing the response to the client application.

### Claim 10 (depends on 9)

The authorization system of claim 9, wherein the set of authorization restrictions are expressed independently of the query engine.

### Claim 11 (depends on 9)

The authorization system of claim 9, wherein the query engine is a GraphQL query engine.

### Claim 12 (depends on 11)

The authorization system of claim 11, wherein the first query is not an introspection query, and wherein execution of the instructions for generating the response to the first query causes the authorization system to perform operations further comprising:
generating a redacted query corresponding to the first query by redacting requests from the first query based at least in part on the set of authorization restrictions; and
wherein the response to the first query comprises a response to the redacted query.

### Claim 13 (depends on 12)

The authorization system of claim 12, wherein execution of the instructions for generating the response to the first query causes the authorization system to perform operations further comprising adding one or more authorization errors to the response corresponding to each of the redacted requests.

### Claim 14 (depends on 11)

The authorization system of claim 11, wherein the first query is an introspection query, and wherein execution of the instructions for generating the response to the first query cases the authorization system to perform operations further comprising:
generating an unredacted response to the first query; and
generating the response to the first query by redacting one or more definitions from the unredacted response, the redactions based at least in part on the set of authorization restrictions

### Claim 15 (depends on 9)

The authorization system of claim 9, wherein the set of authorization restrictions define a subgraph of types and fields the client application is authorized to view.

### Claim 16 (depends on 15)

The authorization system of claim 15, wherein the response to the first query corresponds to the subgraph defined by the set of authorization restrictions.

### Claim 17

An authorization system, comprising:
a GraphQL query engine;
an authorization rule store storing a set of authorization restrictions associated with a client application; and
a query authorization redactor (QAR) configured to:
receive a first query from the client application;
determine an authorization context for the first query based at least in part on the set of authorization restrictions;
generate a response to the first query based at least in part on an intermediate response generated by the GraphQL query engine, the response redacted based at least in part on the authorization context; and
provide the response to the client application.

### Claim 18 (depends on 17)

The authorization system of claim 17, wherein the set of authorization restrictions are determined independently of the GraphQL query engine.

### Claim 19 (depends on 17)

The authorization system of claim 17, wherein the first query is not an introspection query, and wherein:
the QAR is further configured to generate a redacted query corresponding to the first query by redacting requests from the first query based at least in part on the set of authorization restrictions;
the GraphQL query engine is configured to generate a response to the redacted query; and
the QAR is further configured to generate the response to the first query to include the response to the redacted query.

### Claim 20 (depends on 17)

The authorization system of claim 17, wherein the first query is an introspection query, and wherein:
the GraphQL query engine is further configured to generate an unredacted response to the first query; and
the QAR is further configured to generate the response to the first query by redacting one or more definitions from the unredacted response, the redactions based at least in part on the set of authorization restrictions.
