IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
 View Only
  • 1.  client assertion Key Generation

    Posted Fri July 12, 2024 06:46 AM
    Edited by Sarvan Veluppillai Fri July 12, 2024 06:48 AM

    Hi All,

    I really need help on this.  I need to connect to Azure blob service.  In order to connect, I need to get the JWT token from authentication server. 

    I need to send Client ID, KID and client Assertion key.  I have the Client ID, KID and private key.  I don’t know how to create the assertion key on AS400. 

    I have seen this key created using some JAVA library.  But I don’t have those libraries on AS400.  Also, I am using Scott's HTTPAPI to connect since I have to upload a file as multipart.  

    I search the web, looked into QSYS2.HTTP* and got nothing. 

    Any code snippet will be greatly appreciated.

    Can some one please help me on this? 

    Thank You, Sarvan



  • 2.  RE: client assertion Key Generation

    Posted Sun July 14, 2024 02:30 AM

    Hi,

    it is not clear for me if you have to create a jwt, or if you need to authenticate a jwt from a remote server. 

    you can start here:

    Under plugins there's a folder called jwt:

    https://github.com/sitemule/ILEastic



    ------------------------------
    Paolo Salvatore
    ------------------------------