Files
greptimedb/auth/user_provider/index.html
T

4 lines
7.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `user_provider` mod in crate `auth`."><title>auth::user_provider - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-1ed95124.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="auth" data-themes="" data-resource-suffix="" data-rustdoc-version="1.98.1 (48a229cea 2026-09-01)" data-channel="1.98.1" data-search-js="search-9944d736.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module user_provider</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../auth/index.html">auth</a><span class="version">1.4.0-alpha.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module user_<wbr>provider</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate auth</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">auth</a></div><h1>Module <span>user_<wbr>provider</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/auth/user_provider.rs.html#15-1115">Source</a> </span></div><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="static_user_provider/index.html" title="mod auth::user_provider::static_user_provider">static_<wbr>user_<wbr>provider</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="mod" href="watch_file_user_provider/index.html" title="mod auth::user_provider::watch_file_user_provider">watch_<wbr>file_<wbr>user_<wbr>provider</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.MysqlAuthMethod.html" title="enum auth::user_provider::MysqlAuthMethod">Mysql<wbr>Auth<wbr>Method</a></dt><dt><a class="enum" href="enum.PasswordVerifier.html" title="enum auth::user_provider::PasswordVerifier">Password<wbr>Verifier</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="enum" href="enum.PgAuthInfo.html" title="enum auth::user_provider::PgAuthInfo">PgAuth<wbr>Info</a></dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.BEARER_TOKEN_USER.html" title="constant auth::user_provider::BEARER_TOKEN_USER">BEARER_<wbr>TOKEN_<wbr>USER</a></dt><dd>Reserved SQL-protocol username selecting bearer-token authentication.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.UserProvider.html" title="trait auth::user_provider::UserProvider">User<wbr>Provider</a></dt></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.authenticate_with_credential.html" title="fn auth::user_provider::authenticate_with_credential">authenticate_<wbr>with_<wbr>credential</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.load_credential_from_file.html" title="fn auth::user_provider::load_credential_from_file">load_<wbr>credential_<wbr>from_<wbr>file</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.parse_credential_line.html" title="fn auth::user_provider::parse_credential_line">parse_<wbr>credential_<wbr>line</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Parse a line of credential in the format of <code>username=password</code> or <code>username:permission_mode=password</code>.</dd><dt><a class="fn" href="fn.pg_scram_unsupported_users.html" title="fn auth::user_provider::pg_scram_unsupported_users">pg_<wbr>scram_<wbr>unsupported_<wbr>users</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Returns the users whose verifier cannot back a Postgres SCRAM handshake.</dd><dt><a class="fn" href="fn.postgres_auth_info_with_credential.html" title="fn auth::user_provider::postgres_auth_info_with_credential">postgres_<wbr>auth_<wbr>info_<wbr>with_<wbr>credential</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dt><a class="fn" href="fn.warn_if_pg_scram_disabled.html" title="fn auth::user_provider::warn_if_pg_scram_disabled">warn_<wbr>if_<wbr>pg_<wbr>scram_<wbr>disabled</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt><dd>Warns once per credential load when the set disables Postgres SCRAM, so
operators don’t unknowingly serve cleartext passwords over Postgres while
believing SCRAM is in effect.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.UserInfoMap.html" title="type auth::user_provider::UserInfoMap">User<wbr>Info<wbr>Map</a></dt><dd>Type alias for user info map.
Key is username, value is (password verifier, permission_mode).</dd></dl></section></div></main></body></html>