New post

Rechercher

Question
· Feb 10

Creating a JSON Web Token JWT for Microsoft

We are trying to create a JWT in order to get oauth2 token from login.microsoftonline.com and then use that token to get key/secret from an Azure Key Vault.

It seemed like it would be quite straightforward by using the Create method of class  %Net.JSON.JWT

But already trying to set the first header parameter alg PS256 as specified by https://learn.microsoft.com/en-us/entra/identity-platform/certificate-cr... becomes a problem. Just to test, I do this:

set JOSE = {
 "alg""PS256"
}

and then using that and an arbitrary claims as parameters in Create method gives this

"Unsupported JOSE algorithm: PS256"

Changing from PS256 to RS384, for instance. makes that error go away so before going any further I already wonder if this is doable at all - at least by using that class and method? Any help or suggestions are welcome!

1 Comment
Discussion (1)1
Log in or sign up to continue
Question
· Feb 10

CRLF to LF

For example we have a docker app that receives a .csv file from windows environment and then do some processing on it in docker linux environment.

 

Windows encode new line in CRLF format, but linux can understand only LF and throw an unexpected errors like
 

ERROR #7207: Datatype value '100 ' is not a valid number > ERROR #5802: Datatype validation failed on property 'esh.i14y.csv.CelciusCSV.Record:Temperature', with value equal to "100 "


Is there a way to convert new line logic inside iris container in cases when .csv file (and other possible files) comes from windows environment ?

4 Comments
Discussion (4)3
Log in or sign up to continue
Discussion (6)2
Log in or sign up to continue