Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicktrinh committed Feb 26, 2024
1 parent c744d03 commit 84f05ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Project/Sources/Classes/OAuth2Provider.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Function _generateCodeVerifier : Text
// ----------------------------------------------------


Function _hexToBase64Url() : Text
Function get _x5t() : Text

var $xtoencode; $xencoded : Blob
var $i; $l_counter : Integer
Expand Down Expand Up @@ -291,6 +291,9 @@ Function _hexToBase64Url() : Text
End case

$i:=$i+1
If ($i>$textSize)
break
End if

Case of
: ($text[[$i]]="A")
Expand Down Expand Up @@ -563,7 +566,7 @@ Function _getToken_Service()->$result : Object

: (This._useJWTBearerAssertionType())
// See documentation of https://learn.microsoft.com/en-us/entra/identity-platform/certificate-credentials
$options:={header: {alg: "RS256"; typ: "JWT"; x5t: This._hexToBase64Url}}
$options:={header: {alg: "RS256"; typ: "JWT"; x5t: This._x5t}}

$options.payload:={}
$options.payload.iss:=This.clientId // Must be client id of app registration
Expand Down

0 comments on commit 84f05ca

Please sign in to comment.