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

Feat: Create VC as JWT #260

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b604f3d
fix: add asJwt to controllers and services
mustafasalfiti Feb 27, 2024
1b260fa
fix: exceptions
mustafasalfiti Feb 27, 2024
61832ed
fix: exception names
mustafasalfiti Feb 27, 2024
d0522f4
fix: did resolver
mustafasalfiti Feb 27, 2024
ef961a5
fix: add asJwt as query param and fix exceptions
mustafasalfiti Mar 5, 2024
7f01263
fix: part of tests
mustafasalfiti Mar 5, 2024
bb0b30c
fix: current tests
mustafasalfiti Mar 5, 2024
842e437
fix: add test and validation
mustafasalfiti Mar 12, 2024
4216e0d
fix: get vc as jwt with tests
mustafasalfiti Mar 19, 2024
2154b7f
fix: add copyright to getCredentialsCommand
mustafasalfiti Mar 19, 2024
4aec527
fix: add wiremock
mustafasalfiti Mar 19, 2024
531d3f7
fix: add exceptions and fix naming
mustafasalfiti Apr 19, 2024
8b5180a
fix: test for jwt
mustafasalfiti Apr 19, 2024
3da1eff
fix: update code with the new ssi lib main
mustafasalfiti Apr 19, 2024
760ee94
fix: api docs
mustafasalfiti Apr 19, 2024
069a7d3
fix: add keyId to createPresentation
mustafasalfiti Apr 22, 2024
fa9ee4b
fix: change context url
mustafasalfiti Apr 23, 2024
02b1f5a
fix: update ssi agent lib version
mustafasalfiti Apr 24, 2024
b840c77
fix: remove try catch
mustafasalfiti Apr 24, 2024
0c5f111
fix: remove new line
mustafasalfiti Apr 24, 2024
14f6195
fix: revert IssueDismantlerCredentialReqeust.java
mustafasalfiti Apr 24, 2024
050358e
fix: add asJwt to controllers and services
mustafasalfiti Feb 27, 2024
fc6c077
fix: exceptions
mustafasalfiti Feb 27, 2024
30a60d5
fix: exception names
mustafasalfiti Feb 27, 2024
8cbb756
fix: add asJwt as query param and fix exceptions
mustafasalfiti Mar 5, 2024
50ba388
fix: part of tests
mustafasalfiti Mar 5, 2024
b3db3e0
fix: add test and validation
mustafasalfiti Mar 12, 2024
dba48e2
fix: add exceptions and fix naming
mustafasalfiti Apr 19, 2024
0a69f1c
fix: test for jwt
mustafasalfiti Apr 19, 2024
9497d3e
fix: update code with the new ssi lib main
mustafasalfiti Apr 19, 2024
8e7b796
fix: api docs
mustafasalfiti Apr 19, 2024
874e850
fix: remove try catch
mustafasalfiti Apr 24, 2024
31819c8
fix: remove new line
mustafasalfiti Apr 24, 2024
bac5200
fix: revert IssueDismantlerCredentialReqeust.java
mustafasalfiti Apr 24, 2024
697ff85
fix: formatting
nitin-vavdiya May 23, 2024
e00620d
fix: formatting
nitin-vavdiya May 23, 2024
956b6af
fix: copyright updated
nitin-vavdiya May 23, 2024
9ade90e
fix: copyright updated
nitin-vavdiya May 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/********************************************************************************
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
Expand Down Expand Up @@ -77,7 +96,7 @@ dependencies {
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}"
implementation group: 'com.smartsensesolutions', name: 'commons-dao', version: '0.0.5'
implementation 'org.liquibase:liquibase-core'
implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.18'
implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.19'

//Added explicitly to mitigate CVE 2022-1471
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'
Expand All @@ -92,6 +111,7 @@ dependencies {
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.wiremock:wiremock-standalone:3.4.2'
testImplementation 'org.projectlombok:lombok:1.18.28'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "org.testcontainers:testcontainers"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
package org.eclipse.tractusx.managedidentitywallets.apidocs;
/*
* *******************************************************************************
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
* ******************************************************************************
*/

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
package org.eclipse.tractusx.managedidentitywallets.apidocs;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
Expand All @@ -13,6 +29,11 @@
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class HoldersCredentialControllerApiDocs {

@Target(ElementType.METHOD)
Expand Down Expand Up @@ -82,7 +103,7 @@ public class HoldersCredentialControllerApiDocs {
"@context":
[
"https://www.w3.org/2018/credentials/v1",
"https://catenax-ng.github.io/product-core-schemas/SummaryVC.json",
"https://eclipse-tractusx.github.io/tractusx-profiles/cx/context/credentials.context.json",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "did:web:localhost:BPNL000000000000#954d43de-ebed-481d-9e35-e3bbb311b8f5",
Expand Down Expand Up @@ -162,7 +183,7 @@ public class HoldersCredentialControllerApiDocs {
"@context":
[
"https://www.w3.org/2018/credentials/v1",
"https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json",
"https://eclipse-tractusx.github.io/tractusx-profiles/cx/context/credentials.context.json",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "did:web:localhost:BPNL000000000000#319a2641-9407-4c39-bf51-a4a109b59604",
Expand Down Expand Up @@ -256,7 +277,7 @@ public class HoldersCredentialControllerApiDocs {
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://catenax-ng.github.io/product-core-schemas/businessPartnerData.json",
"https://eclipse-tractusx.github.io/tractusx-profiles/cx/context/credentials.context.json",
"https://w3id.org/security/suites/jws-2020/v1"
],
"id": "did:web:localhost:BPNL000000000000#f73e3631-ba87-4a03-bea3-b28700056879",
Expand Down
Loading
Loading