Elio Struyf
712 FOLLOWERS
Elio Struyf is an independent Engineering Lead, Blogger, and Speaker on a mission to share his tried-and-true wisdom with as many IT developers as possible. Armed with a deep-rooted passion for all things information technology, he has always been of the belief that one's job should go beyond something that just pays the bills. He has also had the opportunity to share his know-how at..
Elio Struyf
2d ago
There have been a couple of changes in SharePoint recently related to retrieving access tokens for your SharePoint Framework solutions. One of the changes is that MSAL V3 now uses the /_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken API to retrieve the access token. Typically, this API was only used when loading your solution from Microsoft Teams, but it will now also be used when loading your solution from SharePoint.
Due to this change, one customer started to experience issues with their SPFx solution. The solution used the @pnp/graph library to retrieve the acc ..read more
Elio Struyf
1M ago
In the previous posts, I explained using the Microsoft’s Dev Proxy in a GitHub Actions workflow on a macOS and Ubuntu virtual machine. One thing I noticed is that the Dev Proxy installation fails in some runs.
Show image Failed to install the Dev Proxy
A way to solve this issue is by caching the Dev Proxy, and another benefit is that it speeds up your workflow.
This blog post shows how to cache the Dev Proxy in your GitHub Actions workflows. By caching it, it uses the cached version if it is available, and if not, it will download and install it.
Retrieving the latest Dev Proxy version number ..read more
Elio Struyf
1M ago
In my previous blog post, I explained how you could use the Microsoft Dev Proxy in a GitHub Actions workflow on a macOS runner. In this blog post, I will show you how to use the Dev Proxy in your GitHub Actions workflow on an Ubuntu runner.
info
You can read how to configure it on a macOS runner in the Using Dev Proxy in your GitHub Actions workflow on a macOS runner article.
Most of the steps are the same, except how you trust the root certificate.
Installing and running the Dev Proxy
Like the macOS runner, you can install the bash script provided in the Dev Proxy documentation on the Ubunt ..read more
Elio Struyf
1M ago
Lately, I have been working with the Microsoft Dev Proxy, a tool for API simulation, mocking, and testing. One of the things I wanted to try was to use the Dev Proxy in a GitHub Actions workflow so that I could use it in combination with Playwright to test my solutions with mocked APIs.
The Dev Proxy is a .NET Core application that can run on any platform that supports .NET Core, so it works on Windows, Linux, and macOS. I chose to use a macOS virtual machine/runner because, at the time of writing, the Dev Proxy cannot automatically trust the root certificate.
info
Currently there is an issue ..read more
Elio Struyf
1M ago
The Azure AI Translator service has a new synchronous API in preview. The nice thing about this API is that it does not require any Azure Storage account to be set up to which you typically need to upload the files to be translated. Instead, you can just send the document to be translated directly to the API and you will get the translated document back.
info
You can read more information about the synchronous API on the Get started with synchronous translation article.
In this post, I will show you how to use the synchronous Azure translation API in Node.js.
Calling the synchronous Azure tr ..read more
Elio Struyf
1M ago
GitHub Actions Job Summaries are a great way to provide more information on your job’s output. This summary is shown in the Actions tab of your repository.
Show image GitHub Actions reporter for Playwright with details markup
info
You can read more about it on Supercharging GitHub Actions with Job Summaries
In this post, I’ll explain how you can locally develop and test your GitHub Actions Job Summary outputs using the @actions/core dependency.
info
Testing your summary locally will save you some time, as you don’t have to push your changes to GitHub to see if your summary output is workin ..read more
Elio Struyf
1M ago
The CLI for Microsoft 365 allows you to manage your Microsoft 365 tenant settings and data. It provides a powerful and flexible way to automate tasks for Microsoft 365, and lately, I have been using it in my Azure Functions to automate a couple of tasks.
In this article, I will show you how to use the CLI for Microsoft 365 in TypeScript Azure Functions by explaining the following:
Configuring certificate-based authentication
Using the certificate logging in the Azure Function for CLI for Microsoft 365
Using CLI for Microsoft 365 in TypeScript Azure Functions
Prerequisites
To follow along wit ..read more
Elio Struyf
2M ago
While preparing a new release for Front Matter CMS, I noticed an API call to GitHub failing from the Visual Studio Code marketplace. While looking into it, it requested a SUPPORT.md file in the repository’s root.
Show image VSCode Marketplace - Call for the SUPPORT.md file
The VSCode Marketplace uses the following API format: https://api.github.com/repos/username/repo/contents/SUPPORT.md.
info You can find more information in the get repository content GitHub API documentation.
This API returns more information about the file if it exists, like the download_url and html_url. The html_url li ..read more
Elio Struyf
2M ago
TypeScript is typically my go-to language for building any solution, but sometimes, you must use what is best for the job. In my current project, I am using .NET Core to build Azure Functions, and I had to get myself familiar with using .Net Core and Azure Functions on macOS.
As the Microsoft documentation only explained it with Visual Studio for Mac, I had to figure out how to get it working with Visual Studio Code. This post will describe getting .NET Core and Azure Functions working on macOS with Visual Studio Code.
Prerequisites
To start building. NET-based Azure Functions, you need to ins ..read more
Elio Struyf
2M ago
One of my customers reported that their SharePoint page kept refreshing in Firefox. While investigating the issue, it turned out it was an issue with the Microsoft Graph permission scope that was missing.
All we had to do was approve the permission scope in the SharePoint Admin Center - API access page, and it was fixed; the page stopped refreshing.
Although the solution is simple, I wanted to understand why this was happening.
Why does the page keep refreshing?
Let us first check the experience:
SharePoint page refresh issue
When you look closely at the video, you will see that the page gets ..read more