-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'restructure/0.3.0' of github.com:junkurihara/doh-auth-p…
…roxy into restructure/0.3.0
- Loading branch information
Showing
4 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
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
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,29 @@ | ||
use super::token::{TokenInner, TokenMeta}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
/// Authentication request | ||
#[derive(Serialize)] | ||
pub(super) struct AuthenticationRequest { | ||
pub auth: AuthenticationReqInner, | ||
pub client_id: String, | ||
} | ||
#[derive(Serialize)] | ||
/// Auth req inner | ||
pub(super) struct AuthenticationReqInner { | ||
pub username: String, | ||
pub password: String, | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
/// Auth response | ||
pub(super) struct AuthenticationResponse { | ||
pub token: TokenInner, | ||
pub metadata: TokenMeta, | ||
pub message: String, | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
/// Jwks response | ||
pub(super) struct JwksResponse { | ||
pub keys: Vec<serde_json::Value>, | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mod auth; | ||
mod authenticator; | ||
mod message; | ||
mod token; | ||
|
||
pub use auth::Authenticator; | ||
pub use authenticator::Authenticator; |
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