mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 19:39:41 +01:00
Auth types and OAuth 2.0 / OpenID Connect (M3, M4)
- Digest (MD5/SHA-256, -sess, auth/auth-int) with challenge round trip, self-signed JWT, AWS SigV4 (header and presigned), OAuth 1.0a, PKCS#12 client certificates; every type explains its computation - OAuth: discovery, authorization code with PKCE over a loopback listener (knock:// and paste-by-hand as alternatives), client credentials, device code, password; tokens per issuer/client/scopes/ environment in the keyring with auto refresh and one retry after 401 - Flow log with step timeline, raw exchanges, cURL export, plain-language diagnosis of provider errors, ID token validation incl. JWKS signature - OAuth panel with redirect URI on top, token inspector, refresh, userinfo, introspection, revocation, logout and connection test
This commit is contained in:
@@ -21,6 +21,7 @@ pub fn run() {
|
||||
.setup(|app| {
|
||||
let dir = app.path().app_data_dir()?;
|
||||
app.manage(state::AppState::new(dir)?);
|
||||
app.manage(oauth::OauthState::default());
|
||||
Ok(())
|
||||
})
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
@@ -66,6 +67,11 @@ pub fn run() {
|
||||
commands::setting_set,
|
||||
commands::path_params,
|
||||
commands::app_version,
|
||||
oauth::oauth_status,
|
||||
oauth::oauth_run,
|
||||
oauth::oauth_callback,
|
||||
oauth::oauth_deep_link,
|
||||
oauth::oauth_cancel,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running knock");
|
||||
|
||||
Reference in New Issue
Block a user