Logto helps you build the sign-in experience and user identity within minutes.
The repo for SDKs and working samples written in Rust.
Currently there is no integration tutorial, as the project is still a work in progress
TBD
| Name | Description |
|---|---|
| core | Logto SDK core package |
| utils | Helper functions specified at Logto's SDK specs |
- This repo is not an official Logto repo, but it would be nice to be so one day.
- I based my implementation going back-and-forth with Logto's SDKs in Kotlin, JS and Go. You will see that the code has a lot of similarities taken from those 3 codebases.
- Help is needed and appreciated! This is my first Rust library, so I will be glad to have any feedback and help in organising the code better.
- The project is not feature complete. Here is an advanced feature tracking system, also called todo list:
| Core | Done |
|---|---|
| fetchOidcConfig | β |
| generateSignInUri | β |
| generateSignOutUri | β |
| fetchTokenByAuthorizationCode | β |
| fetchTokenByRefreshToken | β |
| revoke | β |
| Utility functions | Done |
|---|---|
| generateCodeVerifier | β |
| generateCodeChallenge | β |
| generateState | β |
| decodeIdToken | β |
| verifyIdToken | β |
| verifyAndParseCodeFromCallbackUri | β |
| Types | Done |
|---|---|
| OidcConfigResponse | β |
| CodeTokenResponse | β |
| RefreshTokenResponse | β |
| IdTokenClaims | β |
| Basic Types | Done |
|---|---|
| LogtoConfig | β |
| AccessToken | β |
| LogtoClient Properties | Done |
|---|---|
| logtoConfig | β |
| oidcConfig | β |
| accessTokenMap | β |
| refreshToken | β |
| idToken | β |
| LogtoClient Methods | Done |
|---|---|
| constructor | β |
| isAuthenticated | β |
| SignIn | β |
| SignOut | β |
| getAccessToken | β |
| getIdTokenClaims | β |