From 0b77fd4c17801ac4e196acd618679f1d4d643879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Mon, 19 Feb 2024 11:27:51 +0200 Subject: [PATCH] chore(docs): redirect globs in development mode (#7114) * chore(docs): redirect globs in development mode * Update applications.mdx --- .../guides/manage/console/applications.mdx | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/docs/guides/manage/console/applications.mdx b/docs/docs/guides/manage/console/applications.mdx index 70d97cb094..e5f684f6ae 100644 --- a/docs/docs/guides/manage/console/applications.mdx +++ b/docs/docs/guides/manage/console/applications.mdx @@ -123,6 +123,29 @@ When disabled only https is allowed, as ZITADEL's configuration is secure by def width="600px" /> +Development mode also allows glob patterns in redirect URIs with the following special terms in the patterns: + +| Special Terms | Meaning | +| ------------- | ---------------------------------------------------------------------------------------------------------- | +| `*` | matches any sequence of non-path-separators | +| `/**/` | matches zero or more directories | +| `?` | matches any single non-path-separator character | +| `[class]` | matches any single non-path-separator character against a class of characters [see "character classes"][1] | +| `{alt1,...}` | matches a sequence of characters if one of the comma-separated alternatives matches | + +[1]: https://github.com/bmatcuk/doublestar?tab=readme-ov-file#character-classes + +Special character can be escaped with a backslash (`\`). + +Double stars (`**`) should appear surrounded by a path separators such as `/**/`. +A mid-pattern double star (`**`) behaves like bash's glob star option: a pattern +such as `path/to/**.txt` would return the same results as `path/to/*.txt`. The +pattern you're looking for is `path/to/**/*.txt`. + +*Source: [github.com/bmatcuk/doublestar](https://github.com/bmatcuk/doublestar?tab=readme-ov-file#patterns)* + +> When IPv6 URIs are used as redirects in development mode, square brackets must be escaped as they are also Special Terms for globs. `http://\[::1\]:80` + ## Review Configuration