Skip to content

Commit 36be218

Browse files
committed
Github:17644 (OpenId support)
Fix issue #17863
1 parent 6ee8265 commit 36be218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Project/Sources/Classes/OAuth2Provider.4dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ Function get authenticateURI() : Text
930930
If (Length(String($scope))>0)
931931
$urlParams.addQueryParameter("scope"; cs.Tools.me.urlEncode($scope))
932932
End if
933-
$urlParams.addQueryParameter("state"; String($state))
933+
$urlParams.addQueryParameter("state"; cs.Tools.me.urlEncode(String($state)))
934934
$urlParams.addQueryParameter("response_mode"; "query")
935935
$urlParams.addQueryParameter("redirect_uri"; cs.Tools.me.urlEncode($redirectURI))
936936
If (This.PKCEEnabled)
@@ -948,7 +948,7 @@ Function get authenticateURI() : Text
948948
End if
949949
End if
950950
If (Length(String(This.nonce))>0)
951-
$urlParams.addQueryParameter("nonce"; This.nonce)
951+
$urlParams.addQueryParameter("nonce"; cs.Tools.me.urlEncode(This.nonce))
952952
End if
953953

954954
$authenticateURI+=$urlParams.getQueryString()

0 commit comments

Comments
 (0)