Skip to content
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

feat: support ng-add for standalone applications #1800

Merged
merged 6 commits into from
Jul 14, 2023

Conversation

timdeschryver
Copy link
Contributor

@timdeschryver timdeschryver commented Jul 8, 2023

I need to do some more tests, but I already created the PR for initial feedback and to let you know that I've started this.

Closes #1798

A first test seems like the default migration works for standalone applications.
Here's an overview of the changes in an empty application:

image

image

image

And it still works for a module based application:

image
image

@@ -1,5 +1,6 @@
// Public classes.

export { PassedInitialConfig } from './auth-config';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to be used to configure a standalone application in a type-safe way.

@@ -24,7 +24,7 @@ const IFRAME_SILENT_RENEW = `{

const AZURE_AD_SILENT_RENEW = `{
authority: 'https://login.microsoftonline.com/<authorityUrlOrTenantId>/v2.0',
authWellknownEndpoint: 'https://login.microsoftonline.com/common/v2.0',
authWellknownEndpointUrl: 'https://login.microsoftonline.com/common/v2.0',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While testing the migration this gave a compile error, so I renamed this property to match the type.

@FabianGosebrink FabianGosebrink merged commit 747d39a into damienbod:main Jul 14, 2023
@timdeschryver timdeschryver deleted the standalone-ng-add branch July 14, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ng add angular-auth-oidc-client broken on Angular 16 standalone component project
2 participants