Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /saf/authenticate often returns blank jwt #725

Open
jthyssenrocket opened this issue Aug 20, 2024 · 4 comments
Open

POST /saf/authenticate often returns blank jwt #725

jthyssenrocket opened this issue Aug 20, 2024 · 4 comments
Labels
bug Something isn't working new not yet triaged

Comments

@jthyssenrocket
Copy link

I am using zssServer POST /saf/authenticate to generate RACF Identity Tokens (IDTs).
Zowe 2.17, z/OS 3.1

Input JSON is:

{
  "username": "{{userid}}",
  "pass": "{{password}}",
  "appl": "{{appl}}"
}

Sometimes the API returns the JWT:

{
    "jwt": "ey[...snip]PU"
}

but very often it returns a blank JWT:

{
    "jwt": ""
}

I do not see any messages in the Zowe address space ZWESLSTC nor on the SYSLOG

@jthyssenrocket jthyssenrocket added bug Something isn't working new not yet triaged labels Aug 20, 2024
@jthyssenrocket
Copy link
Author

in authServiceFunction, parm = 0x226E6980                                    
handleGenerateToken(): username = <userid>, password = ******                  
safVerify(VERIFY_CREATE) safStatus = 0, RACF RC = 0, RSN = 0, ACEE=0x7FF714D8
IDTA token: gen_rc = 0, prop_out = 0, prop_in = 8000 token length = 0        
safVerify(VERIFY_DELETE) safStatus = 0, RACF RC = 0, RSN = 0, ACEE=0x7FF714D8
handleGenerateToken() done rc = 0                                            

@JoeNemo
Copy link
Contributor

JoeNemo commented Aug 21, 2024

Is this a regression? Was this working correctly and consistently in an earlier release? Does this happen randomly with the same input? If we can reproduce with any decent probability that would be good.

@jthyssenrocket
Copy link
Author

I only became interested in JWTs a month or two ago, so I haven't tried the API In the past.

@jthyssenrocket
Copy link
Author

A good start might be to print IDTA_SAF_IDT_Return and IDTA_IDT_Gen_RC as indicated here https://www.ibm.com/docs/en/zos/3.1.0?topic=zssrmr-activating-using-idta-parameter-in-racroute-requestverify-initacee#idtaparam__section_ehwg_idt__title__1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants