Skip to content

Commit

Permalink
same domain2
Browse files Browse the repository at this point in the history
  • Loading branch information
npm1 committed Oct 18, 2023
1 parent 742b0bb commit f8271f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ To <dfn>fetch the accounts list</dfn> given an {{IdentityProviderAPIConfig}} |co
{{IdentityProviderConfig}} |provider|, and |globalObject|, run the following steps. This returns an
{{IdentityProviderAccountList}}.
1. Let |accountsUrl| be the result of [=computing the manifest URL=] given |provider|,
|config|["{{IdentityProviderAPIConfig/accounts_endpoint}}"], and |globalObject|.
|config|["{{IdentityProviderAPIConfig/accounts_endpoint}}"], true, and |globalObject|.
1. If |accountsUrl| is failure, return an empty list.
1. Let |request| be a new <a spec=fetch for=/>request</a> as follows:

Expand Down Expand Up @@ -1155,7 +1155,7 @@ To <dfn>fetch an identity assertion</dfn> given a {{USVString}}
{{IdentityProviderAPIConfig}} |config|, and |globalObject|, run the following steps. This
returns an {{IdentityCredential}} or an {{IdentityCredentialError}}.
1. Let |tokenUrl| be the result of [=computing the manifest URL=] given |provider|,
|config|["{{IdentityProviderAPIConfig/id_assertion_endpoint}}"], and |globalObject|.
|config|["{{IdentityProviderAPIConfig/id_assertion_endpoint}}"], true, and |globalObject|.
1. If |tokenUrl| is failure:
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |globalObject| to
let |error| be a new {{IdentityCredentialError}} given |globalObject|'s
Expand Down Expand Up @@ -1220,6 +1220,11 @@ To <dfn>fetch an identity assertion</dfn> given a {{USVString}}
"IdentityCredentialError" and return.
1. [=converted to an IDL value|Convert=] |json| to an {{IdentityCredentialErrorInit}},
|errorInit|.
1. If |errorInit|.{{IdentityCredentialErrorInit/url}} is present:
1. Let |errorUrl| be the result of [=computing the manifest URL=] given |provider|,
|errorInit|.{{IdentityCredentialErrorInit/url}}, false, and |globalObject|.
1. If |errorUrl| is failure, set |errorInit|.{{IdentityCredentialErrorInit/url}}
to "".
1. Let |credential| be a new {{IdentityCredentialError}} given |globalObject|'s
[=global object/realm=], "IdentityCredentialError", and |errorInit|.
1. Wait for |credential| to be set.
Expand Down Expand Up @@ -1280,7 +1285,7 @@ To <dfn noexport>fetch the client metadata</dfn> given an {{IdentityProviderAPIC
an {{IdentityProviderConfig}} |provider|, run the following steps. This returns an
{{IdentityProviderClientMetadata}} or failure.
1. Let |clientMetadataUrl| be the result of [=computing the manifest URL=] given |provider|,
|config|["{{IdentityProviderAPIConfig/client_metadata_endpoint}}"], and |globalObject|.
|config|["{{IdentityProviderAPIConfig/client_metadata_endpoint}}"], true, and |globalObject|.
1. If |clientMetadataUrl| is failure, return failure.
1. Let |request| be a new <a spec=fetch for=/>request</a> as follows:

Expand Down

0 comments on commit f8271f7

Please sign in to comment.