Content-Length: 252533 | pFad | https://github.com/sebadob/rauthy/commit/62405bbad7230f2e3af864b004081a90ab505f6f

A6 Merge pull request #444 from sebadob/allow-longer-ephemeral-client-id · sebadob/rauthy@62405bb · GitHub
Skip to content

Commit

Permalink
Merge pull request #444 from sebadob/allow-longer-ephemeral-client-id
Browse files Browse the repository at this point in the history
allow longer `client_id`s for ephemeral clients
  • Loading branch information
sebadob authored May 22, 2024
2 parents ab77595 + eb8d504 commit 62405bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rauthy-common/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ lazy_static! {
pub static ref RE_BASE64: Regex = Regex::new(r"^[a-zA-Z0-9+/=]{4}$").unwrap();
pub static ref RE_CHALLENGE: Regex = Regex::new(r"^(plain|S256)$").unwrap();
pub static ref RE_CITY: Regex = Regex::new(r"^[a-zA-Z0-9À-ÿ-]{0,48}$").unwrap();
pub static ref RE_CLIENT_ID_EPHEMERAL: Regex = Regex::new(r"^[a-zA-Z0-9,.:/_\-&?=~#!$'()*+%]{2,128}$").unwrap();
pub static ref RE_CLIENT_ID_EPHEMERAL: Regex = Regex::new(r"^[a-zA-Z0-9,.:/_\-&?=~#!$'()*+%]{2,256}$").unwrap();
pub static ref RE_CLIENT_NAME: Regex = Regex::new(r"^[a-zA-Z0-9À-ÿ-\s]{2,128}$").unwrap();
pub static ref RE_CODE_CHALLENGE: Regex = Regex::new(r"^[a-zA-Z0-9-\._~]{43,128}$").unwrap();
pub static ref RE_CODE_VERIFIER: Regex = Regex::new(r"^[a-zA-Z0-9-\._~+/=]+$").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion rauthy-models/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub struct EncKeyMigrateRequest {
pub struct EphemeralClientRequest {
#[validate(regex(
path = "RE_CLIENT_ID_EPHEMERAL",
code = "^[a-zA-Z0-9,.:/_\\-&?=~#!$'()*+%]{2,128}$"
code = "^[a-zA-Z0-9,.:/_\\-&?=~#!$'()*+%]{2,256}$"
))]
pub client_id: String,
//github.com/ Validation: `[a-zA-Z0-9À-ÿ-\\s]{2,128}`
Expand Down

0 comments on commit 62405bb

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/62405bbad7230f2e3af864b004081a90ab505f6f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy