Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6b05778
feat(auth): add subject to grant
cozminu May 27, 2025
c6a310e
feat(auth): add subject to grant
cozminu Jun 2, 2025
ed8411d
fix(auth): grant access when is undefined
cozminu Jun 2, 2025
fdfbba3
feat(auth): subject id validation
cozminu Jun 20, 2025
03b1ec5
fix(auth): fix tests
cozminu Jun 20, 2025
9b224b2
Update packages/auth/src/graphql/schema.graphql
cozminu Jun 25, 2025
d9d7982
feat(auth): throw GrantError instead of Error
cozminu Jun 25, 2025
7a7d8e6
fix(auth): description for subIdFormat
cozminu Jun 25, 2025
efd3042
fix(auth): trx in tests is knex
cozminu Jul 3, 2025
454195e
Merge branch 'main' into cozmin/raf-996
cozminu Jul 23, 2025
99e11b9
fix: grant service to throw only grant errors
cozminu Jul 24, 2025
a2db4d6
fix(auth): address change requests
cozminu Jul 28, 2025
223e69e
fix(auth): address change requests
cozminu Jul 28, 2025
eb28179
fix tests
cozminu Jul 28, 2025
bc07cae
access token optional in grant response
cozminu Jul 28, 2025
1b89c37
fix(auth): move accessErrorsMap to grant
cozminu Jul 30, 2025
7b0fe22
Merge branch 'main' into cozmin/raf-996
cozminu Jul 31, 2025
b823bbf
fix(auth): fix test for grant access
cozminu Jul 31, 2025
523da68
fix(auth): changed interaction generic error message
cozminu Aug 1, 2025
86a0618
use main OpenAPI spec for Auth
cozminu Aug 4, 2025
cfb3ca8
fix(auth): approved grant does not return subject
cozminu Aug 18, 2025
bc22b5b
fix(auth): remove unused import
cozminu Aug 25, 2025
8127553
fix(auth): make access_token optional in response
cozminu Aug 27, 2025
108cb6e
fix(deps): sha.js critical update
cozminu Sep 1, 2025
e9a8f08
fix(deps): critical update
cozminu Sep 1, 2025
6c735a0
Update package.json
cozminu Sep 2, 2025
69ad04f
update pnpm lock file
cozminu Sep 2, 2025
805795b
Merge branch 'main' into cozmin/raf-996
cozminu Sep 5, 2025
4b6f81c
change op specs version
cozminu Sep 9, 2025
4f7babc
feat(auth): update idp openapi spec
cozminu Sep 30, 2025
f5e9ddf
feat(auth): make idp standalone
cozminu Sep 30, 2025
763a2e9
chore(deps): update axios
cozminu Oct 1, 2025
2360eea
fix(auth): access token in response when it shouldnt
cozminu Oct 13, 2025
0c2a4ca
Merge branch 'main' into cozmin/raf-996
cozminu Oct 13, 2025
8a47595
fix(auth): tests
cozminu Oct 13, 2025
b4321af
try to fix grype scan
cozminu Oct 13, 2025
798392e
try fix grype
cozminu Oct 14, 2025
b2927c7
restore 'fix'
cozminu Oct 14, 2025
de08468
try fix grype
cozminu Oct 14, 2025
751dad2
try fix grype 2
cozminu Oct 14, 2025
55aa0a1
feat(localenv): expose subject during consent in mock-ase (#3666)
njlie Oct 14, 2025
5ad9be6
Merge branch 'main' into cozmin/raf-996
cozminu Oct 15, 2025
8e0b9c0
Merge branch 'main' into cozmin/raf-996
cozminu Oct 15, 2025
3daaa7c
fix(mase): handle subjectId null case
mkurapov Oct 17, 2025
a34a298
Merge branch 'main' into max/raf-997
mkurapov Oct 20, 2025
2aca95f
chore(mase): remove unused SubjectId type
mkurapov Oct 20, 2025
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
5 changes: 0 additions & 5 deletions localenv/mock-account-servicing-entity/app/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ export interface Access {
limits?: AccessLimit
}

export interface SubjectId {
id: string
format: string
}

export type InstanceConfig = {
name: string
logo: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { Dispatch, SetStateAction } from 'react'
import { useEffect, useState } from 'react'
import { Button } from '~/components'
import { ApiClient } from '~/lib/apiClient'
import type { Access, InstanceConfig, SubjectId } from '~/lib/types'
import type { Access, InstanceConfig } from '~/lib/types'
import { CONFIG } from '~/lib/parse_config.server'

interface ConsentScreenContext {
Expand All @@ -20,7 +20,7 @@ interface ConsentScreenContext {
returnUrl: string
accesses: Array<Access> | null
outgoingPaymentAccess: Access | null
subjectId: SubjectId | null
subjectId: string | null
price: GrantAmount | null
costToUser: GrantAmount | null
errors: Array<Error>
Expand Down Expand Up @@ -64,7 +64,7 @@ function ConsentScreenBody({
interactId: string
nonce: string
returnUrl: string
subjectId: SubjectId | null
subjectId: string | null
}) {
const chooseConsent = (accept: boolean) => {
const href = new URL(returnUrl)
Expand All @@ -82,7 +82,7 @@ function ConsentScreenBody({
{subjectId && (
<p>
{thirdPartyName} is asking you to confirm ownership of{' '}
{subjectId.id}.
{subjectId}.
</p>
)}
</div>
Expand Down Expand Up @@ -365,14 +365,15 @@ export default function ConsentScreen({ idpSecretParam }: ConsentScreenProps) {
: AmountType.UNLIMITED
)
}
returnUrlObject.searchParams.append(
'subjectId',
response.payload.subject.sub_ids[0]?.id ?? null
)

const subjectId = response.payload.subject?.sub_ids[0]?.id ?? null
if (subjectId) {
returnUrlObject.searchParams.append('subjectId', subjectId)
}
setCtx({
...ctx,
accesses: response.payload.access,
subjectId: response.payload.subject.sub_ids[0],
subjectId,
outgoingPaymentAccess: outgoingPaymentAccess,
thirdPartyName: ctx.thirdPartyName,
thirdPartyUri: ctx.thirdPartyUri,
Expand Down
Loading