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

Passing dynamic values into Msal Configuration with runtime config Angular? #1769

Closed
rotirk20 opened this issue Jun 10, 2020 · 2 comments
Closed
Labels
msal-angular Related to @azure/msal-angular package question Customer is asking for a clarification, use case or information.

Comments

@rotirk20
Copy link

Hello I'm trying to switch the app into runtime configuration (Angular) and I'm stuck how to pass dynamic values (ClientID, Secretkey and etc.) to Msal Configuration.I'm using a config.json file which I call with one service which is used in app module with APP_INITIALIZER. It's ok to pass value to components but how to pass it in app module so I can configurate the Msal clientid, secretkey, tenant and etc.

@rotirk20 rotirk20 added the question Customer is asking for a clarification, use case or information. label Jun 10, 2020
@jasonnutter jasonnutter added the msal-angular Related to @azure/msal-angular package label Jun 10, 2020
@jasonnutter
Copy link
Contributor

See #1403 for an example of how to use APP_INITIALIZER.

@rotirk20
Copy link
Author

See #1403 for an example of how to use APP_INITIALIZER.

Thanks awesome example :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
msal-angular Related to @azure/msal-angular package question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

2 participants