diff --git a/spec/index.bs b/spec/index.bs index b2462419..4d081810 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -653,6 +653,7 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig { USVString nonce; DOMString loginHint; DOMString domainHint; + record params; }; @@ -1198,12 +1199,17 @@ To fetch an identity assertion given a {{USVString}} 1. Let |tokenUrl| be the result of [=computing the manifest URL=] given |provider|, |config|["{{IdentityProviderAPIConfig/id_assertion_endpoint}}"], and |globalObject|. 1. If |tokenUrl| is failure, return failure. - 1. Let |requestBody| be the result of running [=urlencoded serializer=] with a list containing: + 1. Let |list| be a list with the following entries: 1. ("client_id", |provider|'s {{IdentityProviderConfig/clientId}}) 1. ("nonce", |provider|'s {{IdentityProviderRequestOptions/nonce}}) 1. ("account_id", |accountId|) 1. ("disclosure_text_shown", |disclosureTextShown|) 1. ("is_auto_selected", |isAutoSelected|) + 1. If |provider|'s {{IdentityProviderRequestOptions/params}} is not empty: + 1. Let |json| be the result of [=serializing a javascript value to a json string=] + with |provider|'s {{IdentityProviderRequestOptions/params}}. + 1. Append ("params", |json|) to |list|. + 1. Let |requestBody| be the result of running [=urlencoded serializer=] with |list|. 1. Let |request| be a new request as follows: : [=request/url=]