Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hellocoop/mockin",
"private": false,
"version": "3.2.0",
"version": "3.2.1",
"description": "Hellō Mock Login OpenID Connect Server",
"engines": {
"node": ">=22"
Expand Down
9 changes: 8 additions & 1 deletion src/aauth/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ export const metadata = async (req, res) => {
person_token_endpoint: `${ISSUER}/aauth/token/person`,
permission_endpoint: `${ISSUER}/aauth/permission`,
audit_endpoint: `${ISSUER}/aauth/audit`,
interaction_endpoint: `${ISSUER}/aauth/interaction`,
// The PERSON-facing page: where a recipient sends the person when a
// 202 carries only a code, composed as `{interaction_endpoint}?code=`.
// It is NOT the agent's reach API (POST /aauth/interaction) — that
// field carried both roles until the flat `interaction_code` landed,
// and an agent composing a person URL from it lands on a 404.
// Hellō's Wallet publishes `${PERSON}/auth` here.
interaction_endpoint: `${ISSUER}/aauth/consent`,
reach_endpoint: `${ISSUER}/aauth/interaction`,
bootstrap_endpoint: `${ISSUER}/aauth/bootstrap`,
})
}
5 changes: 4 additions & 1 deletion test/aauth/metadata.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ describe('AAuth Metadata & JWKS', function () {
expect(data).to.not.have.property('token_endpoint')
expect(data.permission_endpoint).to.equal(`${ISSUER}/aauth/permission`)
expect(data.audit_endpoint).to.equal(`${ISSUER}/aauth/audit`)
expect(data.interaction_endpoint).to.equal(`${ISSUER}/aauth/interaction`)
// The person-facing page, not the agent's reach API: an agent
// composes `{interaction_endpoint}?code=` and sends the person there.
expect(data.interaction_endpoint).to.equal(`${ISSUER}/aauth/consent`)
expect(data.reach_endpoint).to.equal(`${ISSUER}/aauth/interaction`)
expect(data.bootstrap_endpoint).to.equal(`${ISSUER}/aauth/bootstrap`)
})

Expand Down