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

Improve custom code hooks in Program.cs #230

Open
2 tasks
danielskovli opened this issue Jan 24, 2025 · 1 comment
Open
2 tasks

Improve custom code hooks in Program.cs #230

danielskovli opened this issue Jan 24, 2025 · 1 comment
Assignees

Comments

@danielskovli
Copy link

Description

As it stands, the RegisterCustomAppServices methodology in Program.cs doesn't quite capture all use cases. An example of this is when an app requires integration with key vault.

Slack thread: https://digdir.slack.com/archives/C076GU2QHCG/p1737726498755789

Propose a new structure of this file which simplifies boxing of custom code, while allowing enough flexibility to satisfy common use-cases.

Acceptance Criteria

  • The new structure adheres to the same order of operations as the current template (eg. custom code runs before AddAltinnAppServices, etc)
  • All supported customisations should be possible from within a clearly labelled area of Program.cs, ideally a single callback or a well defined hooks interface
@danielskovli danielskovli self-assigned this Jan 24, 2025
@danielskovli
Copy link
Author

Regarding a future desire to automate Key Vault injection, consider modifying values.yml as required for secrets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant