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

Use case: unique voucher generated on-the-fly with seamless integration #494

Open
andrea-dintino opened this issue Oct 14, 2024 · 0 comments
Assignees

Comments

@andrea-dintino
Copy link
Contributor

Use case: users fill a questionnaire, they are rewarded with a credential. <-- this is the ONLY assumption

A possible solution is to generate a voucher on the fly, and create a clickable link (assuming the questoinnaire is filled from mobile) containing openid-credential-offer://{...regular parameters as well as voucher}

@phoebus-84 thinks to use this.

export function createIntentUrl(data: CredentialConfig): string {
    const credentialConfigurationIds = encodeURIComponent(
        data.credential_configuration_ids.join(',')
    );
    const credentialIssuer = encodeURIComponent(data.credential_issuer);
    return `openid-credential-offer://?credential_configuration_ids=${credentialConfigurationIds}&credential_issuer=${credentialIssuer}`;
}

@puria ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants