Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored and github-actions[bot] committed Nov 14, 2023
1 parent a9dfac9 commit e8295ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion authentication/methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ Tokens can be created with an optional namespace to allow for more granular cont
Namespaced tokens are useful for the scenario when you want to limit the privileges of an integration such as a CI/CD pipeline or internal service.

<Info>
It's important to note that namespaced tokens offer limited access to the Flipt API, as only API requests that can be scoped to a namespace are supported.
It's important to note that namespaced tokens offer limited access to the
Flipt API, as only API requests that can be scoped to a namespace are
supported.
</Info>

For example, the `/api/v1/namespaces/{namespace}/flags` endpoint supports a `namespace` parameter, therefore a namespaced token can be used to access this endpoint. However, the `/auth/v1/tokens` endpoint is not associated with a single `namespace`, so a namespaced token cannot be used to access this endpoint.
Expand Down
6 changes: 3 additions & 3 deletions authentication/using-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def doRequest():
### 2. `Cookie` Header

<Warning>
It's important to enable [CSRF](/configuration/authentication#session) prevention in your
Flipt configuration when using a "session compatible" authentication method
and `Cookie` based authentication in the browser.
It's important to enable [CSRF](/configuration/authentication#session)
prevention in your Flipt configuration when using a "session compatible"
authentication method and `Cookie` based authentication in the browser.
</Warning>

For browser-based applications (e.g. Flipt's own user interface) we support supplying a client token via a particular `Cookie` called `flipt_client_token`.
Expand Down
2 changes: 1 addition & 1 deletion reference/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ Head to the [Configuration: Authentication](/configuration#authentication) secti

Once enabled, the Flipt REST API uses tokens for authentication. The token is passed in the `Authorization` header of the request as a `Bearer` token.

For more information on how to create a token, see the [Authentication](/authentication) documentation.
For more information on how to create a token, see the [Authentication](/authentication) documentation.

0 comments on commit e8295ca

Please sign in to comment.