{"id":20692166,"url":"https://github.com/developerjosh/blues-auth-sso","last_synced_at":"2026-04-24T13:03:36.081Z","repository":{"id":252872292,"uuid":"841737712","full_name":"DeveloperJosh/Blues-auth-sso","owner":"DeveloperJosh","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-13T19:34:37.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T01:37:01.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeveloperJosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-13T00:24:06.000Z","updated_at":"2024-08-13T19:34:40.000Z","dependencies_parsed_at":"2024-08-13T03:12:44.614Z","dependency_job_id":"4b24e648-9e31-4d2a-a0e8-22e8fe5f81e7","html_url":"https://github.com/DeveloperJosh/Blues-auth-sso","commit_stats":null,"previous_names":["developerjosh/blues-auth-sso"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeveloperJosh/Blues-auth-sso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FBlues-auth-sso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FBlues-auth-sso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FBlues-auth-sso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FBlues-auth-sso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloperJosh","download_url":"https://codeload.github.com/DeveloperJosh/Blues-auth-sso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloperJosh%2FBlues-auth-sso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32224413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T23:19:36.122Z","updated_at":"2026-04-24T13:03:36.065Z","avatar_url":"https://github.com/DeveloperJosh.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blue-Auth SSO Integration Guide\n\nIf you are looking for the docs, you can find them [here](https://wiki.mutable.ai/DeveloperJosh/Blues-auth-sso).\n\nThis guide provides instructions on how to integrate the Blue-Auth SSO (Single Sign-On) service into your web application. By following this guide, you will be able to authenticate users through Blue-Auth and retrieve user data securely.\n\n## Getting Started\n\nTo begin, you need to create an account on the Blue-Auth website and register a new application to obtain the required credentials: **Client ID** and **Client Secret**.\n\n## How to Use\n\n### 1. **Create an Account on Blue-Auth**\n- Visit the [Blue-Auth website](https://auth.blue-dev.xyz) and sign up for an account.\n- After registering, log in to your Blue-Auth account.\n\n### 2. **Create a New Application**\n- Navigate to the \"Home\" section of your Blue-Auth dashboard.\n- Click on \"Create New Application\" and fill out the required details such as your application's name and description.\n- Once your application is created, you will be given a **Client ID** and **Client Secret**. Make sure to keep these credentials safe as they are required to integrate SSO with your application.\n\n### 3. **Set Up Redirect URLs**\n- During the setup process in Blue-Auth, specify the callback URL for your application. This URL is where users will be redirected after authentication.\n- Example of a callback URL: `https://yourwebsite.com/callback`.\n\n### 4. **Make Requests to Blue-Auth**\n\nTo access protected resources from Blue-Auth, you need to include the following in every request:\n\n- **JWT Token**: The token provided to your application after a user authenticates.\n- **Client ID**: Your application's unique identifier.\n- **Client Secret**: Your application's secret key.\n\n### Example Request in Node.js\n\nHere is a simple example of how to make a request to Blue-Auth to retrieve user data using Node.js:\n\n```javascript\nconst axios = require('axios');\n\nconst CLIENT_ID = 'your_client_id';\nconst CLIENT_SECRET = 'your_client_secret';\nconst JWT_TOKEN = 'user_jwt_token'; // This is obtained after user authentication\n\naxios.post('https://auth.blue-dev.xyz/api/user/me', {\n  client_id: CLIENT_ID,\n}, {\n  headers: {\n    Authorization: `Bearer ${JWT_TOKEN}`,\n    \"X-Client-Secret\": CLIENT_SECRET,\n  }\n})\n.then(response =\u003e {\n  console.log('User Data:', response.data);\n})\n.catch(error =\u003e {\n  console.error('Error fetching user data:', error.response.data);\n});\n\n```\n\n### In this example:\n\n- Replace your_client_id and your_client_secret with the actual values provided by Blue-Auth.\n- Replace user_jwt_token with the JWT token you receive after the user authenticates.\n\n### 5. Important Notes\nThe client_id and client_secret must be kept secure and should not be exposed in the client-side code.\nEnsure that your requests are made over HTTPS to protect the transmitted data.\n\n### 6. Can i use Blue-Auth with my existing user database?\nYes, you can integrate Blue-Auth with your existing user database by mapping the user data retrieved from Blue-Auth to your database schema. You can use the user's email address or unique identifier to match the user data from Blue-Auth with your database records.\n\n### 7. How can i try Blue-Auth SSO?\n\nYou can make your own client using the Blue-Auth API, or you can use the client provided in the this repository. To use the client, follow these steps:\n\n- Clone the repository to your local machine.\n- Run `npm install` to install the required dependencies.\n- Create a `.env` file in the root directory of the project.\n- Add the following environment variables to the `.env` file:\n\n```plaintext\nCLIENT_ID=your_client_id\nCLIENT_SECRET=your_client_secret\nSSO_URL=https://auth.blue-dev.xyz\nREDIRECT_URI=http://localhost:3000/callback\n```\n\n- Run `npm start` to start the client application.\n- Open your browser and navigate to `http://localhost:3000` to test the Blue-Auth SSO integration.\n\n# Conclusion\nBy following these steps, you can securely integrate Blue-Auth SSO into your web application, allowing you to authenticate users and retrieve their data using the provided API.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fblues-auth-sso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperjosh%2Fblues-auth-sso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperjosh%2Fblues-auth-sso/lists"}