Skip to content

fix: resolve issue with user authentication flow#209

Merged
rulasg merged 6 commits intoimprove-performance-fieldsfrom
rulasg/issue208
Mar 7, 2026
Merged

fix: resolve issue with user authentication flow#209
rulasg merged 6 commits intoimprove-performance-fieldsfrom
rulasg/issue208

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Mar 7, 2026

Improve the user authentication flow to address issues with session management and error handling.

  • Fix session timeout handling.

  • Improve error messages during login failures.

  • Refactor authentication middleware for better readability.

$cases = @(
@{item = @{Title= "Test"; repositoryName = "rulasg-dev-1"}; expected = "[rulasg-dev-1] Test"}
@{item = @{Title= "[rulasg-dev-1] Test"; repositoryName = "rulasg-dev-1"}; expected = "[rulasg-dev-1] Test"}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@{item = @{Title= "[rulasg-dev-1] Test"; repositoryName = "rulasg-dev-1"}; expected = "[rulasg-dev-1] Test"}

@{item = @{Title= "[BBVA] Test"; repositoryName = "bBva"}; expected = "[bBva] Test"}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@{item = @{Title= "[BBVA] Test"; repositoryName = "bBva"}; expected = "[bBva] Test"}

@{item = @{Title= "Test [rulasg-dev-1]"; repositoryName = "rulasg-dev-1"}; expected = "Test [rulasg-dev-1]"}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
)
$title = $Item.Title
$header = "[{0}]" -f $Item.RepositoryName
$repoEscaped = [regex]::Escape($Item.RepositoryName)

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace

if($title -imatch "\[$repoEscaped\]" -or $title -imatch "^\s*\[?$repoEscaped\]\s*"){
# Ttile contains repo name. Normalize it to proper case and formatting. This will cover the following scenarios:
$ret = ($title -ireplace "^\s*\[?$repoEscaped\]\s*", "$header ") -ireplace "\[$repoEscaped\]", $header

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg rulasg merged commit 3965403 into improve-performance-fields Mar 7, 2026
1 of 2 checks passed
@rulasg rulasg deleted the rulasg/issue208 branch March 7, 2026 21:34
@rulasg rulasg linked an issue Mar 8, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CHeck if title is normalized

1 participant