Merged
Conversation
…ent application management - Added AppAPI for client application registration. - Introduced AuthAPI for user authentication, including registration, login, email verification, password reset, and token refresh. - Created UserAPI for user profile management, including fetching, updating, and deleting user accounts. - Developed BaseAPIClient to handle HTTP requests and error parsing. - Defined centralized API routes in routes.ts for better maintainability. - Implemented error handling with custom error classes for validation, authentication, and not found errors. - Added utility functions for device data creation and URL validation. - Established a main SSOClient class to encapsulate SDK functionality and provide a stateless design. - Included TypeScript types for better type safety and clarity.
…and integration tests
- Created nest-cli.json for NestJS configuration. - Added package.json with dependencies and scripts for the NestJS app. - Implemented AppModule to import SSOModule and define AuthController. - Developed AuthController with login, register, logout, and profile endpoints. - Set up main.ts to initialize the NestJS application with session management. - Created SSOInterceptor to manage token persistence in sessions. - Established SSOModule to provide SSOService and register the interceptor. - Implemented SSOService to handle SSO client configuration and device context extraction. - Added TypeScript configuration file (tsconfig.json) for the project.
…g, and token storage guides
… Prettier, TypeScript, and package management
… integration tests
…development tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR introduces the initial release of the SSO SDK, complete with authentication flows, user management, client application handling, full testing coverage, framework integrations, and project tooling.
Key Features
SSO SDK Core
routes.ts.SSOClientas the main SDK entry point.Testing
NestJS Example Application
nest-cli.json,tsconfig.json,package.json).AppModule,SSOModule,SSOService, andSSOInterceptor.AuthControllerwith login, register, logout, and profile endpoints.Documentation
README.mdwith installation steps and examples.Project Setup & Tooling
.gitignore, Docker Compose, and a Makefile with development commands.