Skip to content

Commit

Permalink
Merge branch 'main' into fix-build
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Feb 17, 2025
2 parents 194c9de + 8332dc8 commit 868a09e
Show file tree
Hide file tree
Showing 192 changed files with 424 additions and 668 deletions.
4 changes: 2 additions & 2 deletions .github/actions/gradle-setup-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
with:
distribution: 'temurin'
java-version: '21'
- name: Gradle wrapper validation
uses: gradle/actions/wrapper-validation@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Gradle wrapper validation
uses: gradle/actions/wrapper-validation@v4
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
version:
uses: walt-id/waltid-identity/.github/workflows/version.yml@266f5c09359450c39019a6da38f2b331e7122918
gradle-build:
uses: walt-id/waltid-identity/.github/workflows/build-gradle.yml@266f5c09359450c39019a6da38f2b331e7122918
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@d3e3284f901bef1e6d80b35720fbae5e4b49a95a
needs: version
with:
version: ${{ needs.version.outputs.release_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure gradle
uses: ./.github/actions/gradle-setup-action@266f5c09359450c39019a6da38f2b331e7122918
uses: walt-id/waltid-identity/.github/actions/gradle-setup-action@f7b46c8ae1c27f1a0873a5ca8dfb0440c77381ec
- name: Set version
run: |
sed -i "s/1.0.0-SNAPSHOT/${{ inputs.version }}/g" build.gradle.kts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
suffix: -SNAPSHOT
gradle:
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@927c4233610e90dd8a57418662fad7293b7b29a4
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@d3e3284f901bef1e6d80b35720fbae5e4b49a95a
secrets: inherit
needs: version
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
preferred: ${{ inputs.release_version }}
gradle:
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@927c4233610e90dd8a57418662fad7293b7b29a4
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@d3e3284f901bef1e6d80b35720fbae5e4b49a95a
secrets: inherit
needs: version
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
preferred: ${{ inputs.release_version }}
gradle:
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@927c4233610e90dd8a57418662fad7293b7b29a4
uses: walt-id/waltid-identity/.github/workflows/gradle.yml@d3e3284f901bef1e6d80b35720fbae5e4b49a95a
secrets: inherit
needs: version
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package id.walt.cli

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.installMordantMarkdown
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.groups.provideDelegate
import id.walt.cli.commands.*
import id.walt.cli.util.WaltIdCmdHelpOptionMessage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package id.walt.cli.commands

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.installMordantMarkdown
import com.github.ajalt.clikt.core.terminal
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.flag
import com.github.ajalt.clikt.parameters.options.help
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package id.walt.cli.commands

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.installMordantMarkdown
import com.github.ajalt.clikt.core.terminal
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.groups.provideDelegate
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.help
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package id.walt.cli.commands

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.installMordantMarkdown
import com.github.ajalt.clikt.core.terminal
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.options.*
import com.github.ajalt.clikt.parameters.types.file
import com.github.ajalt.clikt.parameters.types.path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package id.walt.cli.commands

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.MissingOption
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.installMordantMarkdown
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.options.*
import com.github.ajalt.clikt.parameters.types.choice
import com.github.ajalt.clikt.parameters.types.path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ package id.walt.cli.presexch
import id.walt.cli.models.Credential
import id.walt.credentials.utils.VCFormat
import id.walt.crypto.utils.JwsUtils.decodeJws
import id.walt.oid4vc.data.dif.*
import id.walt.oid4vc.data.dif.DescriptorMapping
import id.walt.oid4vc.data.dif.PresentationDefinition
import id.walt.oid4vc.data.dif.PresentationSubmission
import id.walt.oid4vc.data.dif.PresentationSubmissionSerializer
import kotlinx.serialization.json.*

class PresentationSubmissionBuilder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package id.walt.cli.util

import id.walt.credentials.issuance.Issuer.mergingJwtIssue
import id.walt.credentials.vc.vcs.W3CVC
import id.walt.crypto.keys.jwk.JWKKey
import id.walt.did.dids.DidService
import id.walt.policies.PolicyManager
import id.walt.policies.Verifier
import id.walt.policies.models.PolicyRequest
import id.walt.policies.models.PolicyResult
import id.walt.crypto.keys.jwk.JWKKey
import id.walt.did.dids.DidService
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package id.walt.cli.verifiers

import id.walt.crypto.utils.JwsUtils.decodeJws
import id.walt.policies.ExpirationDatePolicyException
import id.walt.policies.PolicyManager
import id.walt.policies.Verifier
import id.walt.policies.models.PolicyRequest
import id.walt.policies.policies.ExpirationDatePolicy
import id.walt.crypto.utils.JwsUtils.decodeJws
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import id.walt.oid4vc.data.OpenIDProviderMetadata
import id.walt.oid4vc.data.dif.DescriptorMapping
import id.walt.oid4vc.data.dif.PresentationDefinition
import id.walt.oid4vc.data.dif.PresentationSubmission
import id.walt.oid4vc.data.dif.VCFormat
import id.walt.credentials.utils.VCFormat
import id.walt.oid4vc.errors.PresentationError
import id.walt.oid4vc.interfaces.PresentationResult
import id.walt.oid4vc.interfaces.SimpleHttpResponse
Expand Down Expand Up @@ -358,7 +358,7 @@ internal class TestCredentialWallet(
}

override val metadata: OpenIDProviderMetadata
get() = createDefaultProviderMetadata()
get() = createDefaultProviderMetadata() as OpenIDProviderMetadata.Draft13

override fun getSession(id: String) = sessionCache[id]
override fun getSessionByAuthServerState(authServerState: String): SIOPSession? {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import RowCredential from '@/components/walt/credential/RowCredential';
import Dropdown from '@/components/walt/forms/Dropdown';
import {
AuthenticationMethods,
AvailableCredential,
VpProfiles,
} from '@/types/credentials';
import Checkbox from '@/components/walt/forms/Checkbox';
import InputField from '@/components/walt/forms/Input';
import Button from '@/components/walt/button/Button';
import WaltIcon from '@/components/walt/logo/WaltIcon';
import { CredentialsContext, EnvContext } from '@/pages/_app';
import React, { useState } from 'react';
import { useRouter } from 'next/router';
import { getOfferUrl } from '@/utils/getOfferUrl';
import { sendToWebWallet } from '@/utils/sendToWebWallet';
import nextConfig from '@/next.config';
import { LockClosedIcon } from '@heroicons/react/24/outline';
import RowCredential from "@/components/walt/credential/RowCredential";
import Dropdown from "@/components/walt/forms/Dropdown";
import { AuthenticationMethods, AvailableCredential, VpProfiles } from "@/types/credentials";
import Checkbox from "@/components/walt/forms/Checkbox";
import InputField from "@/components/walt/forms/Input";
import Button from "@/components/walt/button/Button";
import WaltIcon from "@/components/walt/logo/WaltIcon";
import { CredentialsContext, EnvContext } from "@/pages/_app";
import React, { useState } from "react";
import { useRouter } from "next/router";
import { getOfferUrl } from "@/utils/getOfferUrl";
import { sendToWebWallet } from "@/utils/sendToWebWallet";
import nextConfig from "@/next.config";
import { LockClosedIcon } from "@heroicons/react/24/outline";

export default function IssueSection() {
const env = React.useContext(EnvContext);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import RowCredential from '@/components/walt/credential/RowCredential';
import PolicyListItem from '@/components/walt/policy/PolicyListItem';
import { AvailableCredential } from '@/types/credentials';
import WaltIcon from '@/components/walt/logo/WaltIcon';
import InputField from '@/components/walt/forms/Input';
import Button from '@/components/walt/button/Button';
import React, { useContext, useState } from 'react';
import { CredentialsContext } from '@/pages/_app';
import { useRouter } from 'next/router';
import RowCredential from "@/components/walt/credential/RowCredential";
import PolicyListItem from "@/components/walt/policy/PolicyListItem";
import { AvailableCredential } from "@/types/credentials";
import WaltIcon from "@/components/walt/logo/WaltIcon";
import InputField from "@/components/walt/forms/Input";
import Button from "@/components/walt/button/Button";
import React, { useContext, useState } from "react";
import { CredentialsContext } from "@/pages/_app";
import { useRouter } from "next/router";

export default function VerificationSection() {
const router = useRouter();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useRouter } from 'next/router';
import { useRouter } from "next/router";

export default function BackButton() {
const router = useRouter();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode } from 'react';
import { AiOutlineLoading3Quarters } from 'react-icons/ai';
import { ReactNode } from "react";
import { AiOutlineLoading3Quarters } from "react-icons/ai";

type ButtonSize = 'sm' | 'md' | 'lg' | 'xl';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import WaltIcon from '@/components/walt/logo/WaltIcon';
import WaltIcon from "@/components/walt/logo/WaltIcon";

type Props = {
id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import {
AvailableCredential,
CredentialFormats,
DIDMethods,
} from '@/types/credentials';
import EditCredentialModal from '../modal/EditCredentialModal';
import { PencilSquareIcon } from '@heroicons/react/24/outline';
import Dropdown from '@/components/walt/forms/Dropdown';
import React from 'react';
import { AvailableCredential, CredentialFormats, DIDMethods } from "@/types/credentials";
import EditCredentialModal from "../modal/EditCredentialModal";
import { PencilSquareIcon } from "@heroicons/react/24/outline";
import Dropdown from "@/components/walt/forms/Dropdown";
import React from "react";

type Props = {
credentialToEdit: AvailableCredential;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode } from 'react';
import { ReactNode } from "react";

type Props = {
value: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'react';
import { Listbox, Transition } from '@headlessui/react';
import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/20/solid';
import { Fragment } from "react";
import { Listbox, Transition } from "@headlessui/react";
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/react/20/solid";

type Props = {
values: String[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode } from 'react';
import { ReactNode } from "react";

type Props = {
children: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Image from 'next/image';
import Image from "next/image";

type Props = {
height: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Fragment, ReactNode } from 'react';
import { Dialog, Transition } from '@headlessui/react';
import { ChevronLeftIcon, XMarkIcon } from '@heroicons/react/24/outline';
import HSpacer from '@/components/walt/spacer/HSpacer';
import WaltIcon from '@/components/walt/logo/WaltIcon';
import { Fragment, ReactNode } from "react";
import { Dialog, Transition } from "@headlessui/react";
import { ChevronLeftIcon, XMarkIcon } from "@heroicons/react/24/outline";
import HSpacer from "@/components/walt/spacer/HSpacer";
import WaltIcon from "@/components/walt/logo/WaltIcon";

type ModalProps = {
show: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BaseModal from '@/components/walt/modal/BaseModal';
import { CredentialsContext } from '@/pages/_app';
import Button from '../button/Button';
import React, { useState } from 'react';
import BaseModal from "@/components/walt/modal/BaseModal";
import { CredentialsContext } from "@/pages/_app";
import Button from "../button/Button";
import React, { useState } from "react";

type Props = {
show: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Button from '@/components/walt/button/Button';
import BaseModal from '@/components/walt/modal/BaseModal';
import React from "react";
import Button from "@/components/walt/button/Button";
import BaseModal from "@/components/walt/modal/BaseModal";

type Props = {
show: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Checkbox from '@/components/walt/forms/Checkbox';
import Checkbox from "@/components/walt/forms/Checkbox";

type Props = {
name: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spacer, { SpacerProps } from '@/components/walt/spacer/Spacer';
import Spacer, { SpacerProps } from "@/components/walt/spacer/Spacer";

type Props = Pick<SpacerProps, 'size'>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Spacer, { SpacerProps } from '@/components/walt/spacer/Spacer';
import Spacer, { SpacerProps } from "@/components/walt/spacer/Spacer";

type Props = Pick<SpacerProps, 'size'>;

Expand Down
5 changes: 5 additions & 0 deletions waltid-applications/waltid-web-portal/k8s/deployment-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ metadata:
name: portal-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- portal.test.waltid.cloud
secretName: web-portal-tls-secret
rules:
- host: portal.test.waltid.cloud
http:
Expand Down
10 changes: 5 additions & 5 deletions waltid-applications/waltid-web-portal/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import axios from 'axios';
import '@/styles/globals.css';
import type { AppProps } from 'next/app';
import { AvailableCredential } from '@/types/credentials';
import React from "react";
import axios from "axios";
import "@/styles/globals.css";
import type { AppProps } from "next/app";
import { AvailableCredential } from "@/types/credentials";

export const EnvContext = React.createContext({} as { [key: string]: string });
export const CredentialsContext = React.createContext([
Expand Down
4 changes: 2 additions & 2 deletions waltid-applications/waltid-web-portal/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Head, Html, Main, NextScript } from 'next/document';
import Footer from '@/components/sections/Footer';
import { Head, Html, Main, NextScript } from "next/document";
import Footer from "@/components/sections/Footer";

export default function Document() {
return (
Expand Down
2 changes: 1 addition & 1 deletion waltid-applications/waltid-web-portal/pages/api/env.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NextApiRequest, NextApiResponse } from 'next';
import type { NextApiRequest, NextApiResponse } from "next";

type ResponseData = {};

Expand Down
Loading

0 comments on commit 868a09e

Please sign in to comment.