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

Add support for alternative origins to VC issuer #2529

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Jul 4, 2024

Having alternative_origins support allows to simplify the VC e2e tests. This will be done in follow-up PRs.


🟡 Some screens were changed

Having alternative_origins support allows to simplify the VC e2e tests.
This will be done in follow-up PRs.
@frederikrothenberger frederikrothenberger force-pushed the frederik/vc-issuer-alterantive-origins branch from 9f32056 to 006cdd0 Compare July 4, 2024 10:29
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a couple of suggestions.

@@ -451,6 +451,21 @@ fn static_headers() -> Vec<HeaderField> {
vec![("Access-Control-Allow-Origin".to_string(), "*".to_string())]
}

#[update]
fn set_alternative_origins(alternative_origins: String) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be easier to use if it expected a list of origins and the format is managed internally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is useful to be able to configure and test invalid values too.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, true, that's a good point.

demos/vc_issuer/tests/issue_credential.rs Show resolved Hide resolved
@frederikrothenberger frederikrothenberger added this pull request to the merge queue Jul 4, 2024
Merged via the queue into main with commit a76730d Jul 4, 2024
65 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/vc-issuer-alterantive-origins branch July 4, 2024 14:53
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

Successfully merging this pull request may close these issues.

3 participants