Skip to content

docs: update Angular guide for SDK v2 - #1498

Merged
charIeszhao merged 2 commits into
masterfrom
charles-angular-sdk-v2-guide
Sep 10, 2026
Merged

charIeszhao merged 2 commits into
masterfrom
charles-angular-sdk-v2-guide

Conversation

@charIeszhao

Copy link
Copy Markdown
Member

Summary

Update the Angular quick start for @logto/angular v2 and align its sections with the React guide. Replace the third-party OIDC integration with native providers and Signals, and document callback handling, user claims, and userinfo requests.

Add examples for multiple API resources, shared scopes, resource access tokens and refresh behavior, organization tokens, and Bearer request headers. Remove the obsolete restriction that prevented userinfo requests when API resources were configured.

Testing

Tested locally

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 9, 2026

Copy link
Copy Markdown

Deploying logto-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63a316b
Status: ✅  Deploy successful!
Preview URL: https://2e305a06.logto-docs.pages.dev
Branch Preview URL: https://charles-angular-sdk-v2-guide.logto-docs.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 9, 2026

Copy link
Copy Markdown

Deploying logto-docs-tutorials with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63a316b
Status: ✅  Deploy successful!
Preview URL: https://6c82c49a.logto-docs-tutorials.pages.dev
Branch Preview URL: https://charles-angular-sdk-v2-guide.logto-docs-tutorials.pages.dev

View logs

@simeng-li
simeng-li requested a lite review from Copilot September 10, 2026 04:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Guard callback handling with isSignInRedirected() to avoid rejecting direct visits.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Angular quick start for @logto/angular v2 with native SDK integration, Signals, callback handling, API resources, and organization tokens.

Changes:

  • Replaces the third-party OIDC integration with the first-party Angular SDK.
  • Adds claims, userinfo, resource, refresh, and organization-token examples.
  • Documents Bearer authorization headers and multiple resource configurations.
File summaries
File Summary
docs/quick-starts/framework/angular/README.mdx Updates prerequisites and SDK guidance.
docs/quick-starts/framework/angular/code/_get-organization-access-token-code.md Adds organization-token retrieval.
docs/quick-starts/framework/angular/code/_get-access-token-code.md Adds API access-token retrieval.
docs/quick-starts/framework/angular/code/_config-resources-with-shared-scopes-code.md Adds shared-scope configuration.
docs/quick-starts/framework/angular/code/_config-resources-with-scopes-code.md Adds resource-specific scopes.
docs/quick-starts/framework/angular/code/_config-resources-code.md Adds multiple resource configuration.
docs/quick-starts/framework/angular/code/_config-organization-code.md Adds organization scope configuration.
docs/quick-starts/framework/angular/_integration.mdx Adds provider, routing, callback, and authentication examples. Direct callback visits should check isSignInRedirected() before calling handleSignInCallback().
docs/quick-starts/framework/angular/_installation.mdx Updates package installation.
docs/quick-starts/framework/angular/_guide-tip.md References the first-party SDK and sample.
docs/quick-starts/framework/angular/_get-user-information.mdx Adds Signals-based claims and userinfo examples.
docs/quick-starts/framework/angular/_api-resources.mdx Adds resource, organization-token, refresh, and header guidance.
Review details
  • Files reviewed: 12/12 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/quick-starts/framework/angular/_integration.mdx Outdated
@charIeszhao
charIeszhao merged commit 6c17836 into master Sep 10, 2026
19 checks passed
@charIeszhao
charIeszhao deleted the charles-angular-sdk-v2-guide branch September 10, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants