Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional information about public tokens and query parameters #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/content/react/guides/authentication-and-authorization.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Authentication and Authorization

This guide shows how you can create private and public applications. We can classify the applications in two:
This guide shows how authentication and authorization work with custom applications. We can classify the applications in two categories:

- Private applications. Requires a login against the CARTO platform.
- Private applications. Require a login against the CARTO platform.

- Public applications. The user does not need to log into the application. Access to data is provided through a token.

Expand All @@ -12,7 +12,7 @@ This guide shows how you can create private and public applications. We can clas
To create a public application, you need to create a token with access to all of the datasets required by the application and introduce the token in the application config (`src/store/initialStateSlice.js`).

{{% bannerNote title="note" %}}
Because of security reasons the SQL cannot be modified by the user in a private application
Only the specific tables and specific SQL queries added to the token can be used in the application. If you specify a table, you cannot make an arbitrary query using that table, only add the data source with the type equals to MAP_TYPES.TABLE. If you specify a query, you can use [query parameters](../query-parameters) to specify, for instance, different parameters in the WHERE clause.
{{%/ bannerNote %}}

With the following changes we're going to make the private application public.
Expand Down