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:
2026-11-27 16:53:32 +01:00
parent f6484f4dc8
commit a469697af7
29 changed files with 5177 additions and 58 deletions
+6
View File
@@ -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");