-
-
Notifications
You must be signed in to change notification settings - Fork 1
chore: update readme file #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,63 @@ | ||
# experience-samples | ||
<p align="center"> | ||
<a href="https://logto.io/?utm_source=github&utm_medium=readme" target="_blank" align="center" alt="Go to Logto website"> | ||
<picture> | ||
<source width="200" media="(prefers-color-scheme: dark)" srcset="https://github.com/logto-io/.github/raw/master/profile/logto-logo-dark.svg"> | ||
<source width="200" media="(prefers-color-scheme: light)" srcset="https://github.com/logto-io/.github/raw/master/profile/logto-logo-light.svg"> | ||
<img width="200" src="https://github.com/logto-io/logto/raw/master/logo.png" alt="Logto logo"> | ||
</picture> | ||
</a> | ||
</p> | ||
|
||
Logto sign-in experience sample codes | ||
[](https://discord.gg/vRvwuwgpVX) | ||
[](https://cloud.logto.io/?sign_up=true&utm_source=github&utm_medium=repo_logto) | ||
|
||
# Logto sign-in experience UI samples | ||
|
||
Logto[^info] is an open-source Identity and Access Management (IAM) platform designed to streamline Customer Identity and Access Management (CIAM) and Workforce Identity Management. With Single Sign-On (SSO), OIDC-based authentication, and Multi-Tenant SaaS capabilities, Logto offers a scalable, secure, and developer-friendly way to manage authentication for modern web and mobile application. | ||
charIeszhao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This monorepo contains a collection of sign-in experience UI sample projects, which demonstrate how to develop a custom sign-in experience for Logto, with the help of [Logto Experience API](https://bump.sh/logto/doc/logto-experience-api). | ||
|
||
## Samples | ||
|
||
| Name | Description | | ||
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | ||
| [Password sign-in sample](./packages/sign-in-with-password/) | A sample of using username and password to sign in. | | ||
| [Password sign-up sample](./packages/sign-up-with-password/) | A sample of using username and password to register a new account. | | ||
| [Verification code sign-in sample](./packages/sign-in-with-verification-code/) | A sample of using email and verification code to sign in. | | ||
| [Verification code sign-up sample](./packages/sign-up-with-verification-code/) | A sample of using email and verification code to register a new account. | | ||
| Social sign-in sample (working in progress...) | A sample of using social connector to sign-in. | | ||
| Enterprise SSO sign-in (working in progress...) | A sample of using enterprise SSO connector to sign-in. | | ||
| Sign-in and bind MFA (Working in progress...) | A sample of signing-in and binding MFA. | | ||
| Sign-in with MFA verification (Working in progress...) | A sample of signing-in with MFA verification (TOTP, WebAuthn, etc.) | | ||
| Sign-in and fulfill profile (Working in progress...) | A sample of signing-in and fulfilling additional user profile info. | | ||
| Sign-up and fulfill profile (Working in progress...) | A sample of signing-up and fulfilling additional user profile info. | | ||
| Forgot password (Working in progress...) | A sample of forgot password flow. | | ||
|
||
We'll keep adding more samples to this collection. If you have any ideas or requests, please feel free to [open an issue](https://github.com/logto-io/experience-samples/issues/new/choose) | ||
|
||
## Deploy to Logto Cloud | ||
|
||
You can build any of the individual sample projects and deploy to your Logto Cloud instance. Here is how you can do it: | ||
|
||
1. Clone the repository | ||
2. Go to the sample project you want to deploy. For example, `cd packages/sign-in-with-password` | ||
3. Install node dependencies with `pnpm install` (recommended) or `npm install`. | ||
4. Build the project with `pnpm build` (recommended) or `npm run build`. This will generate a `dist` folder with the built assets. | ||
5. Sign in to your Logto Cloud account and create a Machine-to-Machine (M2M) application. Copy the `App ID` and `App secret` from the application settings. | ||
6. Create a `.env` file in the sample project folder or root folder with the following content: | ||
|
||
```env | ||
LOGTO_ENDPOINT=https://<your-tenant-id>.logto.app/ | ||
LOGTO_AUTH=<your-app-id>:<your-app-secret> | ||
LOGTO_PATH=<your-workspace-path>/experience-samples/packages/sign-in-with-password/dist | ||
LOGTO_RESOURCE=https://<your-tenant-id>.logto.app/api | ||
``` | ||
7. Run `npx logto-tunnel deploy` to deploy the sample custom experience to your Logto Cloud instance, and replace the default Logto sign-in experience. Refer to the [Logto tunnel documentation](https://docs.logto.io/docs/references/tunnel-cli/deploy/) for more details. | ||
|
||
## Resources | ||
- [🏠 Logto main repo](https://github.com/logto-io/logto) | ||
- [📚 Logto docs](https://docs.logto.io/?utm_source=github&utm_medium=repo_logto) | ||
- [📝 Logto blog](https://blog.logto.io/?utm_source=github&utm_medium=repo_logto) | ||
- [🔗 Logto Experience API](https://bump.sh/logto/doc/logto-experience-api/?utm_source=github&utm_medium=repo_logto) | ||
|
||
[^info]: Designed by Silverhand Inc. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.