You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: authly-core/README.md
+61-5Lines changed: 61 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,13 @@ This crate provides the foundational types and traits used across the `authly` f
6
6
7
7
## Features
8
8
9
-
-`Identity` structure for unified user information.
10
-
-`OAuthProvider` trait for implementing new OAuth2 providers.
11
-
-`CredentialsProvider` trait for password-based auth.
12
-
-`UserMapper` trait for mapping identities to local database users.
13
-
- Standard `AuthError` types.
9
+
-`Identity` structure for unified user information across different providers.
10
+
-`OAuthToken` structure for standard OAuth2 token responses.
11
+
-`OAuthProvider` trait for implementing OAuth2-compatible authentication providers.
12
+
-`CredentialsProvider` trait for password-based or custom credential authentication.
13
+
-`UserMapper` trait for mapping provider identities to local application users.
14
+
-`pkce` module for Proof Key for Code Exchange support.
15
+
- Standard `AuthError` enum for consistent error handling.
14
16
15
17
## Usage
16
18
@@ -21,6 +23,60 @@ Add this to your `Cargo.toml`:
21
23
authly-core = "0.1.0"
22
24
```
23
25
26
+
### Core Traits
27
+
28
+
#### OAuthProvider
29
+
30
+
The `OAuthProvider` trait defines the interface for OAuth2 providers. It includes methods for generating authorization URLs and exchanging codes for identities.
This crate is part of the [authly-rs](https://github.com/marcjazz/authly-rs) workspace. `authly` is a modular, framework-agnostic authentication orchestration system for Rust.
Copy file name to clipboardExpand all lines: authly-flow/README.md
+53-4Lines changed: 53 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
High-level authentication flows for [authly-rs](https://github.com/marcjazz/authly-rs).
4
4
5
-
This crate orchestrates authentication flows such as OAuth2and credentials-based auth, providing a high-level API that is independent of web frameworks.
5
+
This crate orchestrates authentication flows such as OAuth2, Device Flow, Client Credentials, and direct credentials-based auth, providing a high-level API that is independent of web frameworks.
6
6
7
7
## Features
8
8
9
9
-`OAuth2Flow`: Orchestrates the Authorization Code flow (initiation and finalization).
10
+
-`DeviceFlow`: Orchestrates the Device Authorization Flow (RFC 8628).
11
+
-`ClientCredentialsFlow`: Orchestrates the Client Credentials Flow (RFC 6749 Section 4.4).
10
12
-`CredentialsFlow`: Orchestrates direct credential-based authentication.
11
13
- Support for `UserMapper` to integrate with local user databases.
12
14
@@ -19,7 +21,7 @@ Add this to your `Cargo.toml`:
19
21
authly-flow = "0.1.0"
20
22
```
21
23
22
-
### Example: OAuth2 Flow initiation
24
+
### Example: OAuth2 Flow
23
25
24
26
```rust
25
27
useauthly_flow::OAuth2Flow;
@@ -29,8 +31,55 @@ use authly_providers_github::GitHubProvider;
0 commit comments