-
Notifications
You must be signed in to change notification settings - Fork 25
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
SAML Re-review #1804
SAML Re-review #1804
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
1293524 | Triggered | Generic Password | 86d147f | public/views/login/_login.js | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Quality Gate passedIssues Measures |
SAML Authentication Re-review
This PR revisits the SAML-based Single Sign-On (SSO) authentication in xyz.
Key Changes
saml2-js
to@node-saml/node-saml
packagePackage Migration
The core change is moving from the deprecated
saml2-js
to the maintained@node-saml/node-saml
package.This brings:
Setup Instructions
SAML Authentication Setup
This module handles SAML-based Single Sign-On (SSO) authentication. Here's how to set it up:
Certificate Generation
Generate your Service Provider (SP) certificate pair:
File Structure Setup
Place certificates in your project root:
Identity Provider Setup
Configure your IdP (e.g., Auth0, Okta) with:
Environment Variables
Required variables for SAML strategy initialization:
Implementation Details
Endpoints
/saml/metadata
- Returns SP metadata/saml/login
- Initiates SSO login/saml/acs
- Handles SAML assertions/saml/logout
- Handles SSO logout (optional)/saml/logout/callback
- Processes logout responses (optional)Authentication Flow
/saml/login
Logout Flow
/?logout=true
/saml/logout
endpoint/saml/logout/callback
endpoint is hit for clean up.Security Considerations
Testing
Notes