Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
snip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
irp
snip
Commits
b888a443
Commit
b888a443
authored
3 months ago
by
Sebastian Mohr
Browse files
Options
Downloads
Patches
Plain Diff
Hotfix: SSO client id was redacted caused problems in production
parent
5ca2589b
No related branches found
No related tags found
No related merge requests found
Pipeline
#561800
passed
3 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/fullstack/app/(unprotected)/(account)/(login)/sso/ssoProviders.tsx
+5
-4
5 additions, 4 deletions
.../app/(unprotected)/(account)/(login)/sso/ssoProviders.tsx
with
5 additions
and
4 deletions
apps/fullstack/app/(unprotected)/(account)/(login)/sso/ssoProviders.tsx
+
5
−
4
View file @
b888a443
...
...
@@ -49,8 +49,11 @@ export function loadSSOConfig() {
export
async
function
parseSSOProviderForUi
(
providers
:
SSOProviderServer
[],
):
Promise
<
SSOProvider
[]
>
{
// Copy providers
const
providers_copy
=
structuredClone
(
providers
);
// Check if img paths are valid and load image as data uri
for
(
const
provider
of
providers
)
{
for
(
const
provider
of
providers
_copy
)
{
const
imgPath
=
path
.
join
(
config
.
config_dir
,
provider
.
img
);
if
(
!
(
await
exists
(
imgPath
)))
{
console
.
warn
(
...
...
@@ -62,11 +65,9 @@ export async function parseSSOProviderForUi(
const
img
=
await
fs
.
readFile
(
imgPath
);
provider
.
img
=
`data:image/png;base64,
${
img
.
toString
(
"
base64
"
)}
`
;
provider
.
clientId
=
"
redacted
"
;
provider
.
clientSecret
=
"
redacted
"
;
}
return
providers
;
return
providers
_copy
;
}
async
function
exists
(
f
:
string
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment