-
Notifications
You must be signed in to change notification settings - Fork 487
feat: add sso authentication request signature #2577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Mohamed-Hacene
wants to merge
12
commits into
main
Choose a base branch
from
feat/sso-improvments
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3f01c48
feat: add sp cert and private key
Mohamed-Hacene bce3375
Merge branch 'main' into feat/sso-improvments
Mohamed-Hacene 5540c2a
feat: add saml keys endpoint
Mohamed-Hacene 1affc5e
feat: generate saml keys from frontend
Mohamed-Hacene 6bd328f
style: make cert generation cleaner
Mohamed-Hacene df98dc3
style: add help texts
Mohamed-Hacene 217c600
feat: download saml cert
Mohamed-Hacene 710446a
chore: hide want assertion signed
Mohamed-Hacene 02601c9
chore: cleaning
Mohamed-Hacene 6175942
chore: clean
Mohamed-Hacene 1f3d513
feat: hide private_key on API
Mohamed-Hacene cfd00ae
locale: add translations
Mohamed-Hacene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
frontend/src/routes/(app)/(internal)/settings/saml/download-cert/+server.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { BASE_API_URL } from '$lib/utils/constants'; | ||
|
||
import { error } from '@sveltejs/kit'; | ||
import type { RequestHandler } from './$types'; | ||
export const GET: RequestHandler = async ({ fetch, params }) => { | ||
const endpoint = `${BASE_API_URL}/accounts/saml/0/download-cert`; | ||
|
||
const res = await fetch(endpoint); | ||
if (!res.ok) { | ||
error(400, 'Error fetching the cert'); | ||
} | ||
|
||
const cert = await res.text(); | ||
|
||
return new Response(cert, { | ||
headers: { | ||
'Content-Type': 'application/x-pem-file', | ||
'Content-Disposition': 'attachment; filename="saml-public-cert.pem"' | ||
} | ||
}); | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.