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
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- [`session`](#session)
- [`application`](#application)
- [`userAgent`](#user-agent)
- [`connectionMetadata`](#connectionmetadata)

Check failure on line 45 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Link fragments should be valid

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:45:7 MD051/link-fragments Link fragments should be valid [Context: "[`connectionMetadata`](#connectionmetadata)"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md051.md
- [`authConfig`](#authconfig)

---
Expand All @@ -68,11 +68,11 @@

- **Example**

```bash

Check failure on line 71 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:71:12 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
onLoginRequest(context)
```


Check failure on line 75 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:75 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md012.md
### Execute a step

`executeStep()`
Expand Down Expand Up @@ -116,7 +116,7 @@
});
```

#### Parameters

Check failure on line 119 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Headings should be surrounded by blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:119 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "#### Parameters"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
This section describes the **options** you can use to configure the `executeStep()` function, and the values you can use as **local authenticators** and **federated IdPs** in the function.

- <b>Options</b>
Expand Down Expand Up @@ -192,26 +192,26 @@
</tbody>
</table>


Check failure on line 195 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Multiple consecutive blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:195 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md012.md
The **external identity providers** are represented by the `idp` parameter. The federated connection names are generated based on the name you assign to the connection at registration.

!!! tip "Example"
If you add a [federated google connection]({{base_path}}/guides/authentication/social-login/add-google-login/) with the name **bifrost google**, the value you can use in your authentication scripts is `bifrost_google`.

#### Examples

Check failure on line 201 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Headings should be surrounded by blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:201 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "#### Examples"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md022.md
Shown below are ways to define a login flow using the core functions.

- <b>Example 1: Use <code>stepId</code></b>

This example uses only the `stepId`.
``` js

Check failure on line 207 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should be surrounded by blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:207 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "``` js"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md031.md

Check failure on line 207 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:207:11 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
executeStep(1)
```

- <b>Example 2: Use <code>stepId</code> and <code>eventCallbacks</code></b>

This example uses only the `stepId` and `eventCallbacks`.
``` js

Check failure on line 214 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should be surrounded by blank lines

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:214 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "``` js"] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md031.md
executeStep(1, {
onSuccess: function(context) {
//Do something on success
Expand All @@ -221,7 +221,7 @@

- <b>Example 3: Use all parameters</b>

This example uses the `stepId`, `options`, and an empty `eventCallbacks` object. Different properties can be

Check failure on line 224 in en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces

en/identity-server/7.3.0/docs/references/conditional-auth/api-reference.md:224:113 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.38.0/doc/md009.md
defined by the `options` object, such as `authenticationOptions`, `authenticatorParams` and `stepOptions`. However, you cannot write a script with only the `stepId` and `options`.

See the following examples:
Expand Down Expand Up @@ -738,6 +738,9 @@
var state = getValueFromDecodedAssertion(context.request.params.request[0],"state",true);
```

!!! note
This function only decodes the JWT — it does not verify the signature, issuer, audience, or expiry.

### Get unique user

`getUniqueUserWithClaimValues(claimMap, context)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ This function returns a string containing the parameter's value in a decoded Jso
var state = getValueFromDecodedAssertion(context.request.params.request[0],"state",true);
```

!!! note
This function only decodes the JWT — it does not verify the signature, issuer, audience, or expiry.

### Get unique user

`getUniqueUserWithClaimValues(claimMap, context)`
Expand Down
3 changes: 3 additions & 0 deletions en/includes/references/conditional-auth/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,9 @@ This function returns a string containing the parameter's value in a decoded Jso
var state = getValueFromDecodedAssertion(context.request.params.request[0],"state",true);
```

!!! note
This function only decodes the JWT - it does not verify the signature, issuer, audience, or expiry.

### Get unique user

`getUniqueUserWithClaimValues(claimMap, context)`
Expand Down
Loading