IDP kit configuration #26
-
HI @taminobaumann @dombrn @philpotisk I need some help regarding IDP kit configuration! I am facing a problem. When I visit my client application and click on "Login using waltid" instead of asking for the presentation request it is redirecting me to some wrong URL.
Client ID configuration : Issuer.discover('http://localhost:8080/api/oidc/')
.then(function (oidcIssuer) {
var client = new oidcIssuer.Client({
client_id: '5goyGGPrvkDQPFGQjvN_X56GVRHq53DwVouEP51j9_o',
client_secret: '2fLrCOAZ69HX0vTqv9fcm1v8sQw31DG2L7uyc7CyVqg',
redirect_uris: ["http://localhost:14000/auth/login/callback"],
response_types: ['code'],
}
); IDP Kit config: {
"externalUrl": "https://idp.walt-test.cloud",
"openClientRegistration": false,
"fallbackAuthorizationMode": "SIOP",
"claimConfig": {
"vc_mappings": [
{
"scope": [ "profile" ],
"claim": "name",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.firstName $.credentialSubject.familyName"
},
{
"scope": [ "profile" ],
"claim": "family_name",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.familyName"
},
{
"scope": [ "profile" ],
"claim": "given_name",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.firstName"
},
{
"scope": [ "profile" ],
"claim": "gender",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.gender"
},
{
"scope": [ "profile" ],
"claim": "birthdate",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.dateOfBirth"
},
{
"scope": [ "profile" ],
"claim": "address",
"credentialType": "VerifiableId",
"valuePath": "$.credentialSubject.currentAddress[0]"
}
],
"default_nft_token_claim": {
"chain": "POLYGON",
"smartContractAddress": "0x21dd9b1913d84ab295fdf19834b0b6824a5912ca"
},
"default_vp_token_claim": {
"presentation_definition": {
"id": "1",
"input_descriptors": [
{
"id": "1",
"constraints": {
"fields": [
{
"id": "1",
"path": [ "$.type" ],
"filter": {
"const": "VerifiableId"
}
}
]
}
}
]
}
}
}
} Verifier Config : {
"verifierUiUrl": "https://verifier.walt-test.cloud",
"verifierApiUrl": "https://verifier.walt-test.cloud/verifier-api",
"wallets": {
"walt.id": {
"id": "walt.id",
"url": "https://wallet.walt-test.cloud",
"presentPath": "api/wallet/siopv2/initPresentation/",
"receivePath": "api/wallet/siopv2/initPassiveIssuance/",
"description": "walt.id web wallet"
}
}
} Please help me with this, Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 11 replies
-
This is my OpenID configuration : {
"authorization_endpoint": "http://localhost:8080/api/oidc/authorize",
"token_endpoint": "http://localhost:8080/api/oidc/token",
"registration_endpoint": "http://localhost:8080/api/oidc/clients/register",
"pushed_authorization_request_endpoint": "http://localhost:8080/api/oidc/par",
"issuer": "http://localhost:8080/api/oidc",
"jwks_uri": "http://localhost:8080/api/oidc/jwkSet",
"scopes_supported": [
"openid",
"profile",
"address"
],
"response_types_supported": [
"code",
"id_token",
"token",
"code id_token",
"code token",
"id_token token",
"code id_token token"
],
"grant_types_supported": [
"authorization_code"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic"
],
"request_uri_parameter_supported": true,
"wallets_supported": [
{
"id": "walt.id",
"description": "walt.id web wallet"
}
],
"subject_types_supported": [
"public"
],
"userinfo_endpoint": "http://localhost:8080/api/oidc/userInfo",
"claims_supported": [
"vp_token",
"name",
"family_name",
"given_name",
"gender",
"birthdate",
"address"
]
} |
Beta Was this translation helpful? Give feedback.
-
I've updated your issue to conform to our issue guidelines. |
Beta Was this translation helpful? Give feedback.
-
@waltkb thanks for the quick response , |
Beta Was this translation helpful? Give feedback.
-
So from what I can see, you are being redirected to the "share credential" page at "externalUrl": "https://idp.walt-test.cloud", Please edit this line to correspond to your external URL. In case you are testing it locally, this will most likely be |
Beta Was this translation helpful? Give feedback.
-
Also your verifier config ( {
"verifierUiUrl": "http://localhost:3000",
"verifierApiUrl": "http://localhost:3000/api/siop",
"wallets": {
"localhost": {
"id": "localhost",
"url": "http://localhost:8080",
"presentPath": "sharecredential",
"receivePath" : "api/siop/initiateIssuance/",
"description": "localhost wallet"
}
}
} |
Beta Was this translation helpful? Give feedback.
-
In any case, you can simply pull the newest version from GitHub, all default configs are configured for local testing there to quickly get started. |
Beta Was this translation helpful? Give feedback.
-
hi @waltkb I have tried by cloning the new repo Now I am getting this error @ idp side .lang.reflect.InvocationTargetException |
Beta Was this translation helpful? Give feedback.
-
Please provide the full configuration list you are currently utilizing. |
Beta Was this translation helpful? Give feedback.
-
VERIFIER CONFIG : { "wallets": { IDP CONFIG : {
} OIDC CLIENT (NODE JS) : Issuer.discover('http://localhost:8080/api/oidc/')
|
Beta Was this translation helpful? Give feedback.
-
this is my source code for oidc client app : you will file index.js file here |
Beta Was this translation helpful? Give feedback.
-
I've executed your client application, neither it nor the IDP Kit produce any kind of error message, nor can I reproduce the stack trace you've posted above. |
Beta Was this translation helpful? Give feedback.
-
Hi @waltkb I have downloaded the latest updated Repo IDP Configuration: { "openClientRegistration": false, Verifier config : { "wallets": { and My verifier wallet is already up and running on localhost:3000 , I followed the same as you suggested to me I have also attached the screenshot of my code . |
Beta Was this translation helpful? Give feedback.
-
Steps I followed : Step1 . Configured the idp_config , verifier config files Step2. generated Walt.yaml file as described in documentation ste3. build the idp kit using gradlew build install command. step 4. Started verifier wallet using the web/waltid-idpkit-ui ste5. registered my application on idp as a oidc client step 6. updated client secret and client id in my oidc client. step 7. started and tested oidc client and whenever I click on "login using walt id" instead of showing presentation to me it is taking me to |
Beta Was this translation helpful? Give feedback.
-
Hi Team , It is working successfully now , the only thing is it when it shows the presentation request and I click on "use web wallet" it autometically pics walt id cloud wallet not the local wallet running |
Beta Was this translation helpful? Give feedback.
Hi Team ,
It is working successfully now ,
thanks for the help .... the issue was because of http connection ..I was using https instead of http and now it is working perfectly fine ,
the only thing is it when it shows the presentation request and I click on "use web wallet" it autometically pics walt id cloud wallet not the local wallet running