mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update identity detection methods
This commit is contained in:
parent
9a7984f345
commit
d7f6e2f16b
8 changed files with 47 additions and 41 deletions
|
|
@ -126,8 +126,8 @@ impl Identity {
|
|||
/// Get `Identity` match `request`
|
||||
/// * [Client certificates specification](https://geminiprotocol.net/docs/protocol-specification.gmi#client-certificates)
|
||||
/// * this function work with memory cache (not database)
|
||||
pub fn match_scope(&self, request: &str) -> Option<Item> {
|
||||
if let Some(auth) = self.auth.memory.match_scope(request) {
|
||||
pub fn get(&self, request: &str) -> Option<Item> {
|
||||
if let Some(auth) = self.auth.get(request) {
|
||||
match self.memory.get(auth.profile_identity_id) {
|
||||
Ok(pem) => {
|
||||
return Some(Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue