-
Notifications
You must be signed in to change notification settings - Fork 5
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
Problem getting subject_by_nonce #42
Comments
The nonces are stored correctly at the database in the table |
@RubenGarcia is there anything in the |
Here is the output of the system, as I interact with it: python3 /usr/local/lib/python3.5/dist-packages/auth_microservice/manage.py runserver [23/Aug/2019 08:13:38] INFO [root:48] Trying to load django secret key from /usr/local/lib/python3.5/dist-packages/.django.key System check identified no issues (0 silenced). -----In another window: {"authorization_url": "https://KEYCLOAK/auth/realms/REALM/protocol/openid-connect/auth?nonce=30c70c07c557219148666ae3a471d27fdabe4d70a81168e13980fc225b61fda2&state=edd1a94d923acbdcf7f4e11619ab9459a6699272a40e7f7c2f9dd63deef3890e&redirect_uri=http://REDIRECT:8090/authcallback&client_id=irods-auth-plugin&&scope=openid%20email%20profile&response_type=code&access_type=offline&prompt=login%20consent", "nonce": "30c70c07c557219148666ae3a471d27fdabe4d70a81168e13980fc225b61fda2"} ---The log of this interaction: |
Second interaction: no token which meets required criteria ------Log of the interaction: |
I downloaded the code clean from your repository, and added code to see the tokens pre-and post-validation. Both return 0 tokens, so validation is not an issue. Log follows: [23/Aug/2019 09:14:33] INFO [root:48] Trying to load django secret key from /usr/local/lib/python3.5/dist-packages/.django.key System check identified no issues (0 silenced). [23/Aug/2019 09:14:39] DEBUG [root:165] querying for tokens nonce: 343bd945ac5d35dc02854d6ef88cf0fe8d71de88f5d2aeb1ed521294c9bfb17f [23/Aug/2019 09:15:10] DEBUG [root:226] No HTTP_AUTHORIZATION [23/Aug/2019 09:15:51] DEBUG [root:165] querying for tokens nonce: 8821191bcd7ab08bdfad01085aaf70d0f2c2d610cb9cbad10512b55e812fcf09 |
I was told the issue was "most likely due to missing SSL key and certificate in irods service account environment which has to be set (quite unintuitive) in /var/lib/irods/.irods/irods_environment.json." |
When following the tutorial
https://github.com/heliumdatacommons/auth_microservice/wiki/API-and-Use
in the "manual login" section, I'm getting
curl -k "https://my auth_microservice server/subject_by_nonce?block=60&nonce=<RANDOM_NONCE_STRING from previous step>"
I am getting an immediate response, with error 404, of
no token which meets required criteria
The authorization_url is good and I get either a window to login or a message saying I'm already logged in.
The text was updated successfully, but these errors were encountered: