Skip to content

Commit

Permalink
more cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Jan 4, 2024
1 parent 84a41bb commit 6ebcbda
Show file tree
Hide file tree
Showing 36 changed files with 568 additions and 202 deletions.
1 change: 1 addition & 0 deletions js/apps/account-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"updateEmailFeatureEnabled": ${updateEmailFeatureEnabled?c},
"updateEmailActionEnabled": ${updateEmailActionEnabled?c},
"isViewGroupsEnabled": ${isViewGroupsEnabled?c}
}
}
</script>
Expand Down
2 changes: 2 additions & 0 deletions js/apps/account-ui/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type Environment = {
updateEmailFeatureEnabled: boolean;
updateEmailActionEnabled: boolean;
isViewGroupsEnabled: boolean;
isOid4VciEnabled: boolean;
};
};

Expand All @@ -51,6 +52,7 @@ const defaultEnvironment: Environment = {
updateEmailFeatureEnabled: true,
updateEmailActionEnabled: true,
isViewGroupsEnabled: true,
isOid4VciEnabled: true,
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const VCIssuer = () => {
}


const requestUrl = vcState.credentialIssuer!.credential_issuer + "/protocol/oidc4vp/credential-offer-uri?credentialId=" + supportedCredential.id
const requestUrl = vcState.credentialIssuer!.credential_issuer + "/protocol/oid4vp/credential-offer-uri?credentialId=" + supportedCredential.id


getAccessToken()
Expand All @@ -162,7 +162,7 @@ const VCIssuer = () => {
addError("Did not receive an offer.");
addAlert(response.status + ":" + response.statusText)
} else {
const credUrl = "openid-credential-offer://?credential_offer_uri=" + encodeURIComponent(offerURI.issuer + "/protocol/oidc4vp/credential-offer/" + offerURI.nonce)
const credUrl = "openid-credential-offer://?credential_offer_uri=" + encodeURIComponent(offerURI.issuer + "/protocol/oid4vp/credential-offer/" + offerURI.nonce)
console.log(credUrl)
setState({ ...vcState,
offerUrl: credUrl,
Expand Down Expand Up @@ -208,7 +208,7 @@ const VCIssuer = () => {
<Button
onClick={() => requestVCOffer()}
isDisabled={vcState.isDisabled}>
Initiate Credential-Issuance(OIDC4CI)
Initiate Credential-Issuance(OID4VCI)
</Button>
</ActionListItem>
</ActionList>
Expand Down
4 changes: 2 additions & 2 deletions js/apps/account-ui/src/root/PageNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const menuItems: MenuItem[] = [
isHidden: !environment.features.isViewGroupsEnabled,
},
{
label: "oidc4vp",
path: "vc-issuer"
label: "oid4vci",
path: "vc-issuer",
},
{
label: "resources",
Expand Down
2 changes: 1 addition & 1 deletion js/apps/account-ui/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Applications = lazy(() => import("./applications/Applications"));
const Groups = lazy(() => import("./groups/Groups"));
const PersonalInfo = lazy(() => import("./personal-info/PersonalInfo"));
const Resources = lazy(() => import("./resources/Resources"));
const VCIssuer = lazy(() => import("./oidc4vp/VCIssuer"));
const VCIssuer = lazy(() => import("./oid4vp/VCIssuer"));
const ContentComponent = lazy(() => import("./content/ContentComponent"));

export const DeviceActivityRoute: RouteObject = {
Expand Down
Loading

0 comments on commit 6ebcbda

Please sign in to comment.