-
Anyone able to use the demo app code with their own staging app? I'm able to run the demo app but when I switch to my own staging app client ID, it always response with AUTH-E0001 after the login. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi @dannycsz. This could be due to several factors. In order to help you, I'll need to know what your current setup is. Kindly see answer here to diagnose your issue: Here are some questions:
|
Beta Was this translation helpful? Give feedback.
-
I believe I have a valid JWKS endpoint/object. I have tried generating from mkjwk.org, generating through my JWKS creation code, using the same exact JWKS object as per demo. All gives me the same error. I also tried putting the JWKS object on the dashboard as well as use a valid JWKS endpoint on a server. Both also give same error.
|
Beta Was this translation helpful? Give feedback.
-
Any solution on this because I think quite a number of user also has this problem or is there anyone that has successfully run with their own staging client app? |
Beta Was this translation helpful? Give feedback.
-
Let's try to get a baseline. I've tested this below and I was able to get an authorization code in my redirect URL. Kindly follow the steps below to see if you are able to recreate it:
{
"SERVER_PORT": 8342,
"CLIENT_ID": "<your-client-id>"
"ISSUER_URL": "https://stg-id.singpass.gov.sg",
"REDIRECT_URI": "http://localhost:8342/this-is-my-own-redirect",
"SCOPES": "openid uinfin name",
"KEYS": {
"PRIVATE_SIG_KEY": {
"alg": "ES256",
"kty": "EC",
"x": "tqG7PiAPD0xTBKdxDd4t8xAjJleP3Szw1CZiBjogmoc",
"y": "256TjvubWV-x-C8lptl7eSbMa7pQUXH9LY1AIHUGINk",
"crv": "P-256",
"d": "PgL1UKVpvg_GeKdxV-oUEPIDhGBP2YYZLGiZ5HXDZDI",
"kid": "my-sig-key"
},
"PRIVATE_ENC_KEY": {
"alg": "ECDH-ES+A256KW",
"kty": "EC",
"x": "_TSrfW3arG1Ebc8pCyT-r5lAFvCh_rJvC5HD5-y8yvs",
"y": "Sr2vpuU6gzdUiXddGnRJIroXCfdameaR1mgU49H5h9A",
"crv": "P-256",
"d": "AEabUwi3VjOOfiyoOtSGrqpl8cfhcUhNtj-xh1l-UYE",
"kid": "my-enc-key"
},
"PUBLIC_SIG_KEY": {
"alg": "ES256",
"kty": "EC",
"x": "tqG7PiAPD0xTBKdxDd4t8xAjJleP3Szw1CZiBjogmoc",
"y": "256TjvubWV-x-C8lptl7eSbMa7pQUXH9LY1AIHUGINk",
"crv": "P-256",
"use": "sig",
"kid": "my-sig-key"
},
"PUBLIC_ENC_KEY": {
"alg": "ECDH-ES+A256KW",
"kty": "EC",
"x": "_TSrfW3arG1Ebc8pCyT-r5lAFvCh_rJvC5HD5-y8yvs",
"y": "Sr2vpuU6gzdUiXddGnRJIroXCfdameaR1mgU49H5h9A",
"crv": "P-256",
"use": "enc",
"kid": "my-enc-key"
}
}
}
This should be a baseline that uses the demo app with minimal changes. Kindly report if you are able to do the same. if not, we will need to diagnose further. |
Beta Was this translation helpful? Give feedback.
I finally manage to have it work. What happen is my Authentication flow is QR by default, I update to 1FA and this finally works.