From 8ecf5c5aa7a59b98721355f3fe7b9aa870c7cdb0 Mon Sep 17 00:00:00 2001 From: khalidabuhakmeh Date: Thu, 24 Apr 2025 08:55:23 -0400 Subject: [PATCH] Add section on IdentityModel's Base64Url utility Added documentation about the Base64Url class in IdentityModel. This section explains its use for encoding and decoding base64 URLs, complementing existing examples. --- .idea/docs.duendesoftware.com.iml | 2 ++ src/content/docs/identitymodel/utils/base64.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.idea/docs.duendesoftware.com.iml b/.idea/docs.duendesoftware.com.iml index 0756b76f..b16af2e1 100644 --- a/.idea/docs.duendesoftware.com.iml +++ b/.idea/docs.duendesoftware.com.iml @@ -6,6 +6,8 @@ + + diff --git a/src/content/docs/identitymodel/utils/base64.md b/src/content/docs/identitymodel/utils/base64.md index 6975fabb..5b29f6ae 100644 --- a/src/content/docs/identitymodel/utils/base64.md +++ b/src/content/docs/identitymodel/utils/base64.md @@ -37,6 +37,9 @@ bytes = WebEncoders.Base64UrlDecode(b64url); var text = Encoding.UTF8.GetString(bytes); Console.WriteLine(text); +``` + +## IdentityModel's Base64Url IdentityModel includes the *Base64Url* class to help with encoding/decoding: