diff --git a/example/my_adapter.js b/example/my_adapter.js index 9d1b5057e..6e56357f5 100644 --- a/example/my_adapter.js +++ b/example/my_adapter.js @@ -127,7 +127,7 @@ class MyAdapter { * - returnTo {string} - after resolving interactions send the user-agent to this url * - params {object} - parsed recognized parameters object * - lastSubmission {object} - previous interaction result submission - * - signed {string[]} - parameter names that come from a trusted source + * - trusted {string[]} - parameter names that come from a trusted source * - result {object} - interaction results object is expected here * - session {object} * - session.uid {string} - uid of the session this Interaction belongs to diff --git a/lib/actions/authorization/interactions.js b/lib/actions/authorization/interactions.js index 2bbac65d7..d187808f1 100644 --- a/lib/actions/authorization/interactions.js +++ b/lib/actions/authorization/interactions.js @@ -106,7 +106,7 @@ module.exports = async function interactions(resumeRouteName, ctx, next) { accountId: oidc.session.accountId(), uid: oidc.uid, params: oidc.params.toPlainObject(), - signed: oidc.signed, + trusted: oidc.trusted, session: oidc.session, }); diff --git a/lib/actions/authorization/process_request_object.js b/lib/actions/authorization/process_request_object.js index 5a7562aed..a14c50512 100644 --- a/lib/actions/authorization/process_request_object.js +++ b/lib/actions/authorization/process_request_object.js @@ -202,7 +202,7 @@ module.exports = async function processRequestObject(PARAM_LIST, rejectDupesMidd } if (trusted || (pushedRequestObject && client.tokenEndpointAuthMethod !== 'none')) { - ctx.oidc.signed = Object.keys(request); // TODO: in v7.x rename to "trusted" + ctx.oidc.trusted = Object.keys(request); } else if (ctx.oidc.insecureRequestUri) { throw new InvalidRequestObject('Request Object from insecure request_uri must be signed and/or symmetrically encrypted'); } diff --git a/lib/actions/authorization/resume.js b/lib/actions/authorization/resume.js index 3f4c3a81f..e7f1015d8 100644 --- a/lib/actions/authorization/resume.js +++ b/lib/actions/authorization/resume.js @@ -33,7 +33,7 @@ module.exports = async function resumeAction(whitelist, resumeRouteName, ctx, ne const { result, params: storedParams = {}, - signed = [], + trusted = [], session: originSession, } = interactionSession; @@ -72,7 +72,7 @@ module.exports = async function resumeAction(whitelist, resumeRouteName, ctx, ne const params = new (Params(whitelist))(storedParams); ctx.oidc.params = params; - ctx.oidc.signed = signed; + ctx.oidc.trusted = trusted; ctx.oidc.redirectUriCheckPerformed = true; const clearOpts = { diff --git a/types/index.d.ts b/types/index.d.ts index 2786397a0..dd2f8291d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -192,7 +192,7 @@ declare class Interaction extends BaseModel { prompt: PromptDetail; result?: InteractionResults; returnTo: string; - signed?: string[]; + trusted?: string[]; uid: string; lastSubmission?: InteractionResults; @@ -692,7 +692,7 @@ declare class OIDCContext { readonly webMessageUriCheckPerformed?: boolean; readonly redirectUriCheckPerformed?: boolean; - readonly signed?: string[]; + readonly trusted?: string[]; readonly registrationAccessToken?: RegistrationAccessToken; readonly deviceCode?: DeviceCode; readonly accessToken?: AccessToken; @@ -794,7 +794,7 @@ export interface AdapterPayload extends AnyClientMetadata { }; sessionUid?: string; sid?: string; - signed?: string[]; + trusted?: string[]; state?: AnyObject; transient?: boolean; uid?: string;