1 /**
2 * @schema AuthProvider
3 * type: object
4 * description: |-
5 * The public information of a registered auth provider instance. This is safe
6 * to expose to unauthenticated clients and never contains provider options or
7 * secrets.
8 * x-schemaName: AuthProvider
9 * required:
10 * - id
11 * - identifier
12 * - display_name
13 * - flow
14 * properties:
15 * id:
16 * type: string
17 * title: id
18 * description: |-
19 * The registered instance ID of the provider, used in authentication routes
20 * (for example, `okta` in `POST /auth/user/okta`).
21 * identifier:
22 * type: string
23 * title: identifier
24 * description: The provider's static identifier (for example, `oidc` or `emailpass`).
25 * display_name:
26 * type: string
27 * title: display_name
28 * description: The name to display for the provider in a frontend application.
29 * flow:
30 * type: string
31 * description: |-
32 * The authentication flow the provider uses:
33 *
34 * - `credentials`: the client submits credentials (for example, email and
35 * password) directly to the authentication route.
36 * - `redirect`: the client is redirected to the provider (for example, an
37 * OIDC identity provider) and returns through a callback.
38 *
39 * A frontend can use this to decide whether to render a credentials form or a
40 * "Continue with ..." redirect button.
41 * enum:
42 * - credentials
43 * - redirect
44 *
45 */
46