Content-Length: 297088 | pFad | https://github.com/sebadob/rauthy/commit/55704f3cd3a5dcf04e5796a66ab4aba48b8c70dd

B0 Merge pull request #461 from sebadob/ui-allowed-origen-improvements · sebadob/rauthy@55704f3 · GitHub
Skip to content

Commit

Permalink
Merge pull request #461 from sebadob/ui-allowed-origen-improvements
Browse files Browse the repository at this point in the history
UI: better UX configuring different URI's for clients
  • Loading branch information
sebadob authored Jun 10, 2024
2 parents 8041c95 + a43410a commit 55704f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
21 changes: 12 additions & 9 deletions frontend/src/components/admin/clients/ClientConfig.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
REGEX_CLIENT_NAME,
REGEX_CONTACT,
REGEX_URI,
TOKEN_ALGS
REGEX_ORIGIN,
TOKEN_ALGS,
} from "../../../utils/constants.js";
import {onMount} from "svelte";
import {globalScopesNames} from "../../../stores/admin.js";
Expand Down Expand Up @@ -355,22 +356,16 @@
/>
</div>
<!-- URLs Description -->
<div class="separator">
</div>
<div class="desc">
<p>
The redirect URIs may contain a <code>*</code> wildcard only at the end.
</p>
</div>
<!-- Allowed Origins -->
<ExpandableInput
style="width: {urlInputWidth}"
validation={{
required: true,
regex: REGEX_URI,
errMsg: "Only URL safe values: a-zA-Z0-9,.:/_-&?=~#!$'()*+%",
regex: REGEX_ORIGIN,
errMsg: "Must be a valid origen",
}}
bind:values={client.allowed_origens}
bind:validate={validateAllowedOrigins}
Expand All @@ -382,6 +377,11 @@
</ExpandableInput>
<!-- Redirect URIs -->
<div class="desc">
<p>
Redirect URIs may contain a <code>*</code> wildcard only at the end.
</p>
</div>
<ExpandableInput
style="width: {urlInputWidth}"
validation={{
Expand All @@ -398,6 +398,9 @@
REDIRECT URI
</ExpandableInput>
<div class="separator">
</div>
<!-- Post Logout Redirect URIs -->
<ExpandableInput
style="width: {urlInputWidth}"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const REGEX_CLIENT_NAME = /^[a-zA-Z0-9À-ÿ\-\s]{0,128}$/m;
export const REGEX_CONTACT = /^[a-zA-Z0-9+.@/:]{0,48}$/gm;
export const REGEX_LOWERCASE_SPACE = /^[a-z0-9-_\/\s]{2,128}$/gm;
export const REGEX_PROVIDER_SCOPE = /^[a-z0-9-_\/:\s]{0,128}$/gm;
export const REGEX_ORIGIN = /^(http|https):\/\/[a-zA-Z0-9.:]+$/m;
export const REGEX_PEM = /^(-----BEGIN CERTIFICATE-----)[a-zA-Z0-9+/=\n]+(-----END CERTIFICATE-----)$/gm;
export const REGEX_ROLES = /^[a-z0-9\-_/:*]{2,64}$/gm;
export const REGEX_URI = /^[a-zA-Z0-9,.:/_\-&?=~#!$'()*+%]*$/gm;
Expand Down

0 comments on commit 55704f3

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/55704f3cd3a5dcf04e5796a66ab4aba48b8c70dd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy