@genesislcap/foundation-login 14.408.0 → 14.409.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -122
- package/package.json +15 -15
- package/docs/api/foundation-login.configure.md +0 -113
- package/docs/api/foundation-login.defaultapihost.md +0 -12
- package/docs/api/foundation-login.defaultloginconfig.md +0 -13
- package/docs/api/foundation-login.defaultloginrouting.getroutepath.md +0 -51
- package/docs/api/foundation-login.defaultloginrouting.md +0 -61
- package/docs/api/foundation-login.defaultloginrouting.navigateto.md +0 -51
- package/docs/api/foundation-login.defaultorganisation.md +0 -12
- package/docs/api/foundation-login.defaultpassword.md +0 -12
- package/docs/api/foundation-login.defaultsocketext.md +0 -12
- package/docs/api/foundation-login.defaulttemplateoptions.md +0 -16
- package/docs/api/foundation-login.defaultuser.md +0 -12
- package/docs/api/foundation-login.define.md +0 -38
- package/docs/api/foundation-login.definition.md +0 -19
- package/docs/api/foundation-login.fetchidps.md +0 -70
- package/docs/api/foundation-login.fieldconfig.md +0 -19
- package/docs/api/foundation-login.fieldconfigmap.md +0 -19
- package/docs/api/foundation-login.getloginrouting.md +0 -32
- package/docs/api/foundation-login.getssologinurl.md +0 -84
- package/docs/api/foundation-login.hostenv.md +0 -12
- package/docs/api/foundation-login.hosturl.md +0 -12
- package/docs/api/foundation-login.idp.id.md +0 -11
- package/docs/api/foundation-login.idp.md +0 -72
- package/docs/api/foundation-login.idp.type.md +0 -11
- package/docs/api/foundation-login.idpresponse.id.md +0 -11
- package/docs/api/foundation-login.idpresponse.md +0 -72
- package/docs/api/foundation-login.idpresponse.type.md +0 -11
- package/docs/api/foundation-login.ismfroute.md +0 -54
- package/docs/api/foundation-login.login.md +0 -113
- package/docs/api/foundation-login.loginconfig.autoauth.md +0 -18
- package/docs/api/foundation-login.loginconfig.autoconnect.md +0 -13
- package/docs/api/foundation-login.loginconfig.background.md +0 -30
- package/docs/api/foundation-login.loginconfig.defaultredirecturl.md +0 -18
- package/docs/api/foundation-login.loginconfig.fields.md +0 -18
- package/docs/api/foundation-login.loginconfig.hostpath.md +0 -18
- package/docs/api/foundation-login.loginconfig.localizationresources.md +0 -36
- package/docs/api/foundation-login.loginconfig.logo.md +0 -28
- package/docs/api/foundation-login.loginconfig.logoalttext.md +0 -13
- package/docs/api/foundation-login.loginconfig.md +0 -381
- package/docs/api/foundation-login.loginconfig.messagedelays.md +0 -29
- package/docs/api/foundation-login.loginconfig.omitredirecturls.md +0 -21
- package/docs/api/foundation-login.loginconfig.omitroutes.md +0 -25
- package/docs/api/foundation-login.loginconfig.redirecthandler.md +0 -13
- package/docs/api/foundation-login.loginconfig.showconnectionindicator.md +0 -13
- package/docs/api/foundation-login.loginconfig.showenvironmentindicator.md +0 -13
- package/docs/api/foundation-login.loginconfig.sso.md +0 -18
- package/docs/api/foundation-login.loginconfig.submitbuttonappearance.md +0 -25
- package/docs/api/foundation-login.loginconfig.versioninformation.md +0 -25
- package/docs/api/foundation-login.loginhosted.md +0 -55
- package/docs/api/foundation-login.loginhosted.registercommoncomponents.md +0 -18
- package/docs/api/foundation-login.loginrouting.getroutepath.md +0 -12
- package/docs/api/foundation-login.loginrouting.md +0 -91
- package/docs/api/foundation-login.loginrouting.navigateto.md +0 -12
- package/docs/api/foundation-login.md +0 -449
- package/docs/api/foundation-login.messagedelaykey.md +0 -12
- package/docs/api/foundation-login.messagedelays.md +0 -14
- package/docs/api/foundation-login.routes.md +0 -21
- package/docs/api/foundation-login.settings.md +0 -20
- package/docs/api/foundation-login.ssoconfig.md +0 -33
- package/docs/api/foundation-login.styles.md +0 -62
- package/docs/api/foundation-login.template.md +0 -51
- package/docs/api/foundation-login.templatecomponents.md +0 -25
- package/docs/api/foundation-login.templateoptions.md +0 -19
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -446
package/README.md
CHANGED
|
@@ -1,141 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @genesislcap/foundation-login
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Documentation for this package is published on the Genesis docs site:
|
|
4
4
|
|
|
5
|
-
[
|
|
6
|
-
|
|
7
|
-
## Introduction
|
|
8
|
-
|
|
9
|
-
This micro front-end includes a set of identity management functions, such as authentication (including via SSO) and password reset. Many of the features can be turned on and off as desired, and parts of the login screen (such as the logo) can be customised.
|
|
10
|
-
|
|
11
|
-
Login uses the [Credential Management API](https://developer.mozilla.org/en-US/docs/Web/API/Credential_Management_API), falling back to cookies when unavailable.
|
|
12
|
-
|
|
13
|
-
An example of the main login screen: <br/>
|
|
14
|
-

|
|
15
|
-
|
|
16
|
-
An example of authentication via SSO: <br/>
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
<!-- An example of the forgotten password screen: <br/>
|
|
20
|
-
 -->
|
|
21
|
-
|
|
22
|
-
An example of the change password screen: <br/>
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
<!-- An example of the request account screen: <br/>
|
|
26
|
-
 -->
|
|
27
|
-
|
|
28
|
-
## Login set-up
|
|
29
|
-
|
|
30
|
-
:::info
|
|
31
|
-
If you build a project upon one of the Genesis seed apps, then the `Login` micro front-end will already be set up for you.
|
|
32
|
-
:::
|
|
33
|
-
|
|
34
|
-
To enable this micro front-end in your application, follow the steps below.
|
|
35
|
-
|
|
36
|
-
1. Add `@genesislcap/foundation-login` as a dependency in your **package.json** file. Whenever you change the dependencies of your project, always run the `$ npm run bootstrap` or `$ npm run bootstrap:ignore-scripts` command again. You can see more information on the [package.json basics](https://learn.genesis.global/secure/web/micro-front-ends/foundation-login/) page.
|
|
37
|
-
|
|
38
|
-
```javascript
|
|
39
|
-
{
|
|
40
|
-
...
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@genesislcap/foundation-login": "latest"
|
|
43
|
-
},
|
|
44
|
-
...
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
:::note
|
|
49
|
-
This page assumes you're using the routing systems that are part of `foundation-ui`, and will cover set-up as part of that routing system.
|
|
50
|
-
:::
|
|
51
|
-
|
|
52
|
-
Once installed, you can either use `Login` as is or re-configure it. As with all our micro front-ends, you also have the option of lazy loading it.
|
|
53
|
-
|
|
54
|
-
### Basic usage
|
|
55
|
-
|
|
56
|
-
[Basic usage example](./docs/api/foundation-login.login.md#example)
|
|
57
|
-
|
|
58
|
-
### Advanced usage
|
|
59
|
-
|
|
60
|
-
[Advanced usage example](./docs/api/foundation-login.configure.md#example)
|
|
61
|
-
|
|
62
|
-
## Public and private routes
|
|
63
|
-
|
|
64
|
-
You may need to set up a `NavigationContributor` in your application's router config class to handle `public` and `autoAuth` route settings.
|
|
65
|
-
|
|
66
|
-
- `public`, which indicates that a route doesn't require the user to be authenticated to view it
|
|
67
|
-
- `autoAuth`, where, if the user already has an authenticated session, they are automatically logged in again if they navigate away from a page and then return
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
{
|
|
71
|
-
path: 'info',
|
|
72
|
-
element: Info,
|
|
73
|
-
title: 'Info',
|
|
74
|
-
name: 'info',
|
|
75
|
-
settings: { public: true },
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
path: 'admin',
|
|
79
|
-
element: Admin,
|
|
80
|
-
title: 'Admin',
|
|
81
|
-
name: 'admin',
|
|
82
|
-
settings: { autoAuth: true },
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
:::warning
|
|
87
|
-
By default, a route that isn't marked public is not. However, a non-public route isn't automatically going to block non-authenticated users from viewing them. This must be implemented in a `NavigationContributor`; see [example](./docs/api/foundation-login.login.md#example).
|
|
88
|
-
:::
|
|
89
|
-
|
|
90
|
-
## Authentication
|
|
91
|
-
|
|
92
|
-
For authentication, most configuration is set in the back end. You should familiarise yourself with the [authentication section of the back-end](docs/03_server/05_access-control/01_introduction.md).
|
|
93
|
-
|
|
94
|
-
### Username & password
|
|
95
|
-
|
|
96
|
-
The standard authentication method is the user supplying their username and password. Even when SSO is enabled as an authentication method, the user will still have the option to sign in with their normal credentials.
|
|
97
|
-
|
|
98
|
-
:::note
|
|
99
|
-
Setting the `DEFAULT_USER` and `DEFAULT_PASSWORD` environment variables automatically populates the credentials in the login form, which can be useful during development so developers don't need to write out their credentials continuously. However, the browser may also offer auto-filling if you have previously chosen to save your credentials, which can make setting these unnecessary.
|
|
100
|
-
:::
|
|
101
|
-
|
|
102
|
-
### SSO
|
|
103
|
-
|
|
104
|
-
SSO functionality allows the `Login` micro front-end to work with your company's existing authentication system, enabling them to have a single set of credentials - including those built on the Genesis low-code platform. Genesis supports SSO with both JWT and SAML.
|
|
105
|
-
|
|
106
|
-
Setting up SSO is primarily [a back-end task](docs/03_server/05_access-control/04_sso_jwt.md); however, there is a small amount of front-end [sso configuration](docs/api/foundation-login.loginconfig.sso.md) required.
|
|
107
|
-
|
|
108
|
-
:::note
|
|
109
|
-
The standard process of SSO is that the SSO authentication provider flow is opened via a redirect in the current page. However, many authentication providers block their system when running in an iframe to prevent [clickjacking attacks](https://owasp.org/www-community/attacks/Clickjacking). Because of this, if the `Login` micro front-end detects that it is running in an iframe, it opens up the authentication provider in a popup instead.
|
|
110
|
-
:::
|
|
111
|
-
|
|
112
|
-
## Customising login
|
|
113
|
-
|
|
114
|
-
The `Login` micro front-end can be customised using an exported `configure` function. See [configure](docs/api/foundation-login.configure.md) in the API docs for more information.
|
|
5
|
+
**Docs: [Login](https://docs.genesis.global/docs/develop/client-capabilities/login/)**
|
|
115
6
|
|
|
116
7
|
## Installation
|
|
117
8
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
1. Add `@genesislcap/foundation-login` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
|
|
9
|
+
Add the package to your `package.json` dependencies. After changing dependencies, run `npm run bootstrap` (or your project's equivalent). See [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) for more information.
|
|
121
10
|
|
|
122
11
|
```json
|
|
123
12
|
{
|
|
124
|
-
...
|
|
125
13
|
"dependencies": {
|
|
126
|
-
...
|
|
127
14
|
"@genesislcap/foundation-login": "latest"
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
...
|
|
15
|
+
}
|
|
131
16
|
}
|
|
132
17
|
```
|
|
133
18
|
|
|
134
|
-
## [API Docs](./docs/api/index.md)
|
|
135
|
-
|
|
136
19
|
## License
|
|
137
20
|
|
|
138
21
|
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
139
22
|
|
|
140
23
|
### Licensed components
|
|
24
|
+
|
|
141
25
|
Genesis low-code platform
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-login",
|
|
3
3
|
"description": "Genesis Foundation Login",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.409.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-login.d.ts",
|
|
@@ -69,21 +69,21 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@genesislcap/foundation-testing": "14.
|
|
73
|
-
"@genesislcap/genx": "14.
|
|
74
|
-
"@genesislcap/rollup-builder": "14.
|
|
75
|
-
"@genesislcap/ts-builder": "14.
|
|
76
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
77
|
-
"@genesislcap/vite-builder": "14.
|
|
78
|
-
"@genesislcap/webpack-builder": "14.
|
|
72
|
+
"@genesislcap/foundation-testing": "14.409.0",
|
|
73
|
+
"@genesislcap/genx": "14.409.0",
|
|
74
|
+
"@genesislcap/rollup-builder": "14.409.0",
|
|
75
|
+
"@genesislcap/ts-builder": "14.409.0",
|
|
76
|
+
"@genesislcap/uvu-playwright-builder": "14.409.0",
|
|
77
|
+
"@genesislcap/vite-builder": "14.409.0",
|
|
78
|
+
"@genesislcap/webpack-builder": "14.409.0"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@genesislcap/foundation-comms": "14.
|
|
82
|
-
"@genesislcap/foundation-i18n": "14.
|
|
83
|
-
"@genesislcap/foundation-logger": "14.
|
|
84
|
-
"@genesislcap/foundation-ui": "14.
|
|
85
|
-
"@genesislcap/foundation-utils": "14.
|
|
86
|
-
"@genesislcap/foundation-zero": "14.
|
|
81
|
+
"@genesislcap/foundation-comms": "14.409.0",
|
|
82
|
+
"@genesislcap/foundation-i18n": "14.409.0",
|
|
83
|
+
"@genesislcap/foundation-logger": "14.409.0",
|
|
84
|
+
"@genesislcap/foundation-ui": "14.409.0",
|
|
85
|
+
"@genesislcap/foundation-utils": "14.409.0",
|
|
86
|
+
"@genesislcap/foundation-zero": "14.409.0",
|
|
87
87
|
"@microsoft/fast-components": "2.30.6",
|
|
88
88
|
"@microsoft/fast-element": "1.14.0",
|
|
89
89
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
102
|
"customElements": "dist/custom-elements.json",
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "cbe0459d170f27c35a7de18cec415947aedf4da5"
|
|
104
104
|
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [configure](./foundation-login.configure.md)
|
|
4
|
-
|
|
5
|
-
## configure() function
|
|
6
|
-
|
|
7
|
-
> Warning: This API is now obsolete.
|
|
8
|
-
>
|
|
9
|
-
> - Please use foundation-auth instead.
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
Configure the login micro frontend settings.
|
|
13
|
-
|
|
14
|
-
**Signature:**
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
export declare function configure(container: Container, config: Partial<LoginConfig>): void;
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Parameters
|
|
21
|
-
|
|
22
|
-
<table><thead><tr><th>
|
|
23
|
-
|
|
24
|
-
Parameter
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th><th>
|
|
33
|
-
|
|
34
|
-
Description
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</th></tr></thead>
|
|
38
|
-
<tbody><tr><td>
|
|
39
|
-
|
|
40
|
-
container
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
Container
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td><td>
|
|
49
|
-
|
|
50
|
-
DI container.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</td></tr>
|
|
54
|
-
<tr><td>
|
|
55
|
-
|
|
56
|
-
config
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
Partial<[LoginConfig](./foundation-login.loginconfig.md)<!-- -->>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td><td>
|
|
65
|
-
|
|
66
|
-
A partial LoginConfig.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</td></tr>
|
|
70
|
-
</tbody></table>
|
|
71
|
-
|
|
72
|
-
**Returns:**
|
|
73
|
-
|
|
74
|
-
void
|
|
75
|
-
|
|
76
|
-
## Remarks
|
|
77
|
-
|
|
78
|
-
This is primarily for general settings, rather than re-defining the element, static templating / style changes.
|
|
79
|
-
|
|
80
|
-
## Example
|
|
81
|
-
|
|
82
|
-
Configuring login on lazy load
|
|
83
|
-
|
|
84
|
-
```ts
|
|
85
|
-
name: 'login',
|
|
86
|
-
path: 'login',
|
|
87
|
-
title: 'Login',
|
|
88
|
-
element: async () => {
|
|
89
|
-
const { configure, define, defaultLoginConfig } = await import('@genesislcap/foundation-login');
|
|
90
|
-
configure(this.container, {
|
|
91
|
-
autoConnect: true,
|
|
92
|
-
omitRoutes: ['request-account'],
|
|
93
|
-
fields: {
|
|
94
|
-
...defaultLoginConfig.fields,
|
|
95
|
-
organisation: {
|
|
96
|
-
label: 'CompID',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
hostPath: 'login',
|
|
100
|
-
defaultRedirectUrl: 'dashboard',
|
|
101
|
-
logo: loginLogo,
|
|
102
|
-
background: loginBG,
|
|
103
|
-
});
|
|
104
|
-
// You can import and return `Login` directly here or re-define it completely via `define`.
|
|
105
|
-
return define({
|
|
106
|
-
name: `nexus-login`,
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
layout: loginLayout,
|
|
110
|
-
settings: { public: true },
|
|
111
|
-
childRouters: true,
|
|
112
|
-
```
|
|
113
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultApiHost](./foundation-login.defaultapihost.md)
|
|
4
|
-
|
|
5
|
-
## defaultApiHost variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
defaultApiHost: string
|
|
12
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultLoginConfig](./foundation-login.defaultloginconfig.md)
|
|
4
|
-
|
|
5
|
-
## defaultLoginConfig variable
|
|
6
|
-
|
|
7
|
-
Default LoginConfig DI implementation.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
defaultLoginConfig: LoginConfig
|
|
13
|
-
```
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [DefaultLoginRouting](./foundation-login.defaultloginrouting.md) > [getRoutePath](./foundation-login.defaultloginrouting.getroutepath.md)
|
|
4
|
-
|
|
5
|
-
## DefaultLoginRouting.getRoutePath() method
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
getRoutePath(route: string): string;
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Parameter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Description
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th></tr></thead>
|
|
32
|
-
<tbody><tr><td>
|
|
33
|
-
|
|
34
|
-
route
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td><td>
|
|
38
|
-
|
|
39
|
-
string
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td></tr>
|
|
46
|
-
</tbody></table>
|
|
47
|
-
|
|
48
|
-
**Returns:**
|
|
49
|
-
|
|
50
|
-
string
|
|
51
|
-
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [DefaultLoginRouting](./foundation-login.defaultloginrouting.md)
|
|
4
|
-
|
|
5
|
-
## DefaultLoginRouting class
|
|
6
|
-
|
|
7
|
-
Default LoginRouting.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class DefaultLoginRouting implements LoginRouting
|
|
13
|
-
```
|
|
14
|
-
**Implements:** [LoginRouting](./foundation-login.loginrouting.md)
|
|
15
|
-
|
|
16
|
-
## Methods
|
|
17
|
-
|
|
18
|
-
<table><thead><tr><th>
|
|
19
|
-
|
|
20
|
-
Method
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</th><th>
|
|
24
|
-
|
|
25
|
-
Modifiers
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</th><th>
|
|
29
|
-
|
|
30
|
-
Description
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</th></tr></thead>
|
|
34
|
-
<tbody><tr><td>
|
|
35
|
-
|
|
36
|
-
[getRoutePath(route)](./foundation-login.defaultloginrouting.getroutepath.md)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</td><td>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
<tr><td>
|
|
48
|
-
|
|
49
|
-
[navigateTo(route)](./foundation-login.defaultloginrouting.navigateto.md)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td></tr>
|
|
60
|
-
</tbody></table>
|
|
61
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [DefaultLoginRouting](./foundation-login.defaultloginrouting.md) > [navigateTo](./foundation-login.defaultloginrouting.navigateto.md)
|
|
4
|
-
|
|
5
|
-
## DefaultLoginRouting.navigateTo() method
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
navigateTo(route: string): void;
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Parameters
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Parameter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</th><th>
|
|
22
|
-
|
|
23
|
-
Type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Description
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th></tr></thead>
|
|
32
|
-
<tbody><tr><td>
|
|
33
|
-
|
|
34
|
-
route
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</td><td>
|
|
38
|
-
|
|
39
|
-
string
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td></tr>
|
|
46
|
-
</tbody></table>
|
|
47
|
-
|
|
48
|
-
**Returns:**
|
|
49
|
-
|
|
50
|
-
void
|
|
51
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultOrganisation](./foundation-login.defaultorganisation.md)
|
|
4
|
-
|
|
5
|
-
## defaultOrganisation variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
defaultOrganisation: string
|
|
12
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultPassword](./foundation-login.defaultpassword.md)
|
|
4
|
-
|
|
5
|
-
## defaultPassword variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
defaultPassword: string
|
|
12
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultSocketExt](./foundation-login.defaultsocketext.md)
|
|
4
|
-
|
|
5
|
-
## defaultSocketExt variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
defaultSocketExt: string
|
|
12
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultTemplateOptions](./foundation-login.defaulttemplateoptions.md)
|
|
4
|
-
|
|
5
|
-
## defaultTemplateOptions variable
|
|
6
|
-
|
|
7
|
-
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
The default template options this MF has been created with.
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
defaultTemplateOptions: TemplateOptions
|
|
16
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultUser](./foundation-login.defaultuser.md)
|
|
4
|
-
|
|
5
|
-
## defaultUser variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
defaultUser: string
|
|
12
|
-
```
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [define](./foundation-login.define.md)
|
|
4
|
-
|
|
5
|
-
## define variable
|
|
6
|
-
|
|
7
|
-
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
Re-define the login micro frontend.
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
define: import("@genesislcap/foundation-ui").DefineFunction<typeof Login>
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```ts
|
|
22
|
-
import { define, styles, template, defaultTemplateOptions } from '@genesislcap/foundation-login';
|
|
23
|
-
const customTemplateOptions = {
|
|
24
|
-
...defaultTemplateOptions,
|
|
25
|
-
...customOptions,
|
|
26
|
-
}
|
|
27
|
-
export const AppLogin = define({
|
|
28
|
-
name: `nexus-login`,
|
|
29
|
-
template: template(customTemplateOptions),
|
|
30
|
-
styles: css`
|
|
31
|
-
${styles(customTemplateOptions)}
|
|
32
|
-
some-element {
|
|
33
|
-
background-color: #ff00b4;
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
});
|
|
37
|
-
```
|
|
38
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [definition](./foundation-login.definition.md)
|
|
4
|
-
|
|
5
|
-
## definition variable
|
|
6
|
-
|
|
7
|
-
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
**Signature:**
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
definition: PartialFASTElementDefinition
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Remarks
|
|
17
|
-
|
|
18
|
-
This is the main definition of this micro frontend which is exposed for user reconfiguration.
|
|
19
|
-
|