Skip to content

Add Blazor WebAssembly example with SystemLink API authentication#84

Closed
Samuelsotogit wants to merge 192 commits intoni:mainfrom
Samuelsotogit:main
Closed

Add Blazor WebAssembly example with SystemLink API authentication#84
Samuelsotogit wants to merge 192 commits intoni:mainfrom
Samuelsotogit:main

Conversation

@Samuelsotogit
Copy link
Collaborator

Summary

  • Adds a Blazor WebAssembly example (BlazorWasmAuthExample) that demonstrates
    authenticated API calls to SystemLink using NI's Nimble design system
  • Includes a Blazor Server example (BlazorApp1) showing server-side rendering
    with SignalR
  • Adds a local API proxy dev tool (ApiServiceProxy) for local development
    without exposing API keys

What the example covers

  • API key authentication in development via a local proxy
  • Session cookie authentication in production (hosted on SystemLink)
  • Displaying API responses in a NimbleTable using NimbleBlazor
  • Deployment to SystemLink via deploy.sh using the slcli tool
  • Workarounds for known SystemLink hosting issues (fingerprinted dotnet.js, CSP
    restrictions, deep sub-path routing)

Recommended Test plan

  • Run dotnet run in BlazorWasmAuthExample with a local proxy configured
  • Verify API call button fetches and displays results in the NimbleTable
  • Run ./deploy.sh and verify the app deploys and loads correctly on SystemLink

rockyRaccoon13 and others added 25 commits February 20, 2026 12:56
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
created deploy script to deal with fingerprinted file errors and automate deployment process

updated gitignore file
Removed unused files, implemented a new NavBar using Nimble Anchor tags,
changed the styling of the app, and solved the routing issue (see README).
@@ -0,0 +1,12 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should add the bin directory to .gitignore and remove all these files from the PR

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for the obj directory.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think my changes in #85 will handle this for you.

@@ -0,0 +1,104 @@
name: Deploy React WebApps
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be good for us to focus on getting #73 completed before spending too much more time on this PR. Right now it's hard to track which files in this PR are coming from that one, and what the diffs are between the files that are in both PRs.

GitHub is also struggling with the number of files in the PR and that would help it keep up (along with gitignoring the binary files like I mentioned in another comment).

@@ -0,0 +1,104 @@
name: Deploy React WebApps

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like there are 3 Blazor apps in this PR: BlazorApp1, BlazorWasmAuthExample, and Logan-Amur-app. Can you give them more descriptive names and make sure they all have a README.md explaining their purpose?

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.

6 participants