Introduce @asgardeo/angular SDK#373
Draft
DonOmalVindula wants to merge 6 commits intoasgardeo:mainfrom
Draft
Conversation
bfb52d5 to
fa83417
Compare
fa83417 to
7433471
Compare
0dbf9e3 to
6b774a6
Compare
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. |
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.
Purpose
This pull request introduces the initial setup for the
@asgardeo/angularpackage, laying the foundation for Angular integration with the Asgardeo JavaScript SDK. The changes include configuration files, build scripts, and the core implementation for the Angular client, as well as supporting API utilities.Key highlights:
AsgardeoAngularClientclass, providing authentication and organization management for Angular apps.Angular SDK Core Implementation:
Introduced the
AsgardeoAngularClientclass insrc/AsgardeoAngularClient.ts, implementing user authentication, session management, organization switching, and profile retrieval tailored for Angular applications. This class wraps the SPA client and exposes Angular-friendly methods and error handling.Added
createOrganizationutility insrc/api/createOrganization.ts, providing an Angular-specific API for creating organizations, supporting both default and custom fetchers, and multi-instance support.Build and Tooling Setup:
Added
esbuild.config.mjsto configure dual ESM/CJS builds, reading dependencies frompackage.jsonand outputting to thedistdirectory.Added and configured
.eslintrc.cjs,.eslintignore, andprettier.config.cjsfor code linting and formatting, using WSO2's shared configurations. [1] [2] [3]Package Metadata and Scripts:
package.jsonwith metadata, build/test scripts, dependencies, and publishing configuration for the new@asgardeo/angularpackage.Related Issues
Related PRs
Checklist
Security checks