-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: API docs for login PTL-1538 (#1971)
- Loading branch information
Showing
65 changed files
with
1,569 additions
and
48 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
docs/001_develop/03_client-capabilities/003_login/docs/_category_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
className: 'hidden' |
71 changes: 71 additions & 0 deletions
71
...develop/03_client-capabilities/003_login/docs/api/foundation-login.configure.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [configure](./foundation-login.configure.md) | ||
|
||
## configure() function | ||
|
||
> Warning: This API is now obsolete. | ||
> | ||
> - Please use foundation-auth instead. | ||
> | ||
Configure the login micro frontend settings. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare function configure(container: Container, config: Partial<LoginConfig>): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| container | Container | DI container. | | ||
| config | Partial<[LoginConfig](./foundation-login.loginconfig.md)> | A partial LoginConfig. | | ||
|
||
**Returns:** | ||
|
||
void | ||
|
||
## Remarks | ||
|
||
This is primarily for general settings, rather than re-defining the element, static templating / style changes. | ||
|
||
## Example | ||
|
||
Configuring login on lazy load | ||
|
||
```ts | ||
name: 'login', | ||
path: 'login', | ||
title: 'Login', | ||
element: async () => { | ||
const { configure, define, defaultLoginConfig } = await import('@genesislcap/foundation-login'); | ||
configure(this.container, { | ||
autoConnect: true, | ||
omitRoutes: ['request-account'], | ||
fields: { | ||
...defaultLoginConfig.fields, | ||
organisation: { | ||
label: 'CompID', | ||
}, | ||
}, | ||
hostPath: 'login', | ||
defaultRedirectUrl: 'dashboard', | ||
logo: loginLogo, | ||
background: loginBG, | ||
}); | ||
// You can import and return `Login` directly here or re-define it completely via `define`. | ||
return define({ | ||
name: `nexus-login`, | ||
}); | ||
}, | ||
layout: loginLayout, | ||
settings: { public: true }, | ||
childRouters: true, | ||
``` | ||
|
15 changes: 15 additions & 0 deletions
15
...op/03_client-capabilities/003_login/docs/api/foundation-login.defaultapihost.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultApiHost](./foundation-login.defaultapihost.md) | ||
|
||
## defaultApiHost variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultApiHost: string | ||
``` |
16 changes: 16 additions & 0 deletions
16
...3_client-capabilities/003_login/docs/api/foundation-login.defaultloginconfig.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultLoginConfig](./foundation-login.defaultloginconfig.md) | ||
|
||
## defaultLoginConfig variable | ||
|
||
Default LoginConfig DI implementation. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultLoginConfig: LoginConfig | ||
``` |
15 changes: 15 additions & 0 deletions
15
..._client-capabilities/003_login/docs/api/foundation-login.defaultorganisation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultOrganisation](./foundation-login.defaultorganisation.md) | ||
|
||
## defaultOrganisation variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultOrganisation: string | ||
``` |
15 changes: 15 additions & 0 deletions
15
...p/03_client-capabilities/003_login/docs/api/foundation-login.defaultpassword.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultPassword](./foundation-login.defaultpassword.md) | ||
|
||
## defaultPassword variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultPassword: string | ||
``` |
15 changes: 15 additions & 0 deletions
15
.../03_client-capabilities/003_login/docs/api/foundation-login.defaultsocketext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultSocketExt](./foundation-login.defaultsocketext.md) | ||
|
||
## defaultSocketExt variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultSocketExt: string | ||
``` |
19 changes: 19 additions & 0 deletions
19
...ient-capabilities/003_login/docs/api/foundation-login.defaulttemplateoptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultTemplateOptions](./foundation-login.defaulttemplateoptions.md) | ||
|
||
## defaultTemplateOptions variable | ||
|
||
> 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. | ||
> | ||
The default template options this MF has been created with. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultTemplateOptions: TemplateOptions | ||
``` |
15 changes: 15 additions & 0 deletions
15
...velop/03_client-capabilities/003_login/docs/api/foundation-login.defaultuser.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [defaultUser](./foundation-login.defaultuser.md) | ||
|
||
## defaultUser variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
defaultUser: string | ||
``` |
41 changes: 41 additions & 0 deletions
41
...01_develop/03_client-capabilities/003_login/docs/api/foundation-login.define.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [define](./foundation-login.define.md) | ||
|
||
## define variable | ||
|
||
> 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. | ||
> | ||
Re-define the login micro frontend. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
define: import("@genesislcap/foundation-ui").DefineFunction<typeof Login> | ||
``` | ||
|
||
## Example | ||
|
||
|
||
```ts | ||
import { define, styles, template, defaultTemplateOptions } from '@genesislcap/foundation-login'; | ||
const customTemplateOptions = { | ||
...defaultTemplateOptions, | ||
...customOptions, | ||
} | ||
export const AppLogin = define({ | ||
name: `nexus-login`, | ||
template: template(customTemplateOptions), | ||
styles: css` | ||
${styles(customTemplateOptions)} | ||
some-element { | ||
background-color: #ff00b4; | ||
} | ||
`, | ||
}); | ||
``` | ||
|
22 changes: 22 additions & 0 deletions
22
...evelop/03_client-capabilities/003_login/docs/api/foundation-login.definition.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [definition](./foundation-login.definition.md) | ||
|
||
## definition variable | ||
|
||
> 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. | ||
> | ||
**Signature:** | ||
|
||
```typescript | ||
definition: PartialFASTElementDefinition | ||
``` | ||
|
||
## Remarks | ||
|
||
This is the main definition of this micro frontend which is exposed for user reconfiguration. | ||
|
16 changes: 16 additions & 0 deletions
16
...develop/03_client-capabilities/003_login/docs/api/foundation-login.fetchidps.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [fetchIDPs](./foundation-login.fetchidps.md) | ||
|
||
## fetchIDPs variable | ||
|
||
Request SSO identity provider list | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
fetchIDPs: (path?: string, host?: string) => Promise<IDP[]> | ||
``` |
22 changes: 22 additions & 0 deletions
22
...velop/03_client-capabilities/003_login/docs/api/foundation-login.fieldconfig.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [FieldConfig](./foundation-login.fieldconfig.md) | ||
|
||
## FieldConfig type | ||
|
||
Could be expanded to allow field ViewTemplates. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type FieldConfig = { | ||
label: string; | ||
value?: any; | ||
required?: boolean; | ||
pattern?: string; | ||
title?: string; | ||
}; | ||
``` |
22 changes: 22 additions & 0 deletions
22
...op/03_client-capabilities/003_login/docs/api/foundation-login.fieldconfigmap.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [FieldConfigMap](./foundation-login.fieldconfigmap.md) | ||
|
||
## FieldConfigMap type | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type FieldConfigMap = { | ||
organisation: FieldConfig | null; | ||
username: FieldConfig; | ||
email: FieldConfig; | ||
password: FieldConfig; | ||
}; | ||
``` | ||
**References:** [FieldConfig](./foundation-login.fieldconfig.md) | ||
|
16 changes: 16 additions & 0 deletions
16
...op/03_client-capabilities/003_login/docs/api/foundation-login.getssologinurl.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [getSSOLoginURL](./foundation-login.getssologinurl.md) | ||
|
||
## getSSOLoginURL variable | ||
|
||
Get SSO identity provider login URL | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getSSOLoginURL: (idp: any, path?: string, host?: string) => string | ||
``` |
15 changes: 15 additions & 0 deletions
15
...1_develop/03_client-capabilities/003_login/docs/api/foundation-login.hostenv.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [hostEnv](./foundation-login.hostenv.md) | ||
|
||
## hostEnv variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
hostEnv: string | ||
``` |
15 changes: 15 additions & 0 deletions
15
...1_develop/03_client-capabilities/003_login/docs/api/foundation-login.hosturl.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [hostUrl](./foundation-login.hosturl.md) | ||
|
||
## hostUrl variable | ||
|
||
|
||
**Signature:** | ||
|
||
```typescript | ||
hostUrl: string | ||
``` |
14 changes: 14 additions & 0 deletions
14
...01_develop/03_client-capabilities/003_login/docs/api/foundation-login.idp.id.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
format: md | ||
--- | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [IDP](./foundation-login.idp.md) > [id](./foundation-login.idp.id.md) | ||
|
||
## IDP.id property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
id: string; | ||
``` |
Oops, something went wrong.