Compare commits

..

No commits in common. "942ae25f09e783d8753d0d9cc5f8fc6423725bb1" and "b6968f17421996e43f23ae3ca248813a2ffbf8a8" have entirely different histories.

4 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@ class WebKeyDirectoryController < WellKnownController
if params[:l].blank? if params[:l].blank?
# TODO store hashed username in db if existing implementations trigger # TODO store hashed username in db if existing implementations trigger
# this a lot # this a lot
msg = "WKD request with \"l\" param omitted for hu: #{params[:hashed_username]}" msg = "WKD request with \"l\" param omitted for hu: #{params[:hashed_username]})"
Sentry.capture_message(msg) if Setting.sentry_enabled? Sentry.capture_message(msg) if Setting.sentry_enabled?
http_status :bad_request and return http_status :bad_request and return
end end

View File

@ -52,7 +52,7 @@
<section class="!pt-8 sm:!pt-12"> <section class="!pt-8 sm:!pt-12">
<h3>OpenPGP</h3> <h3>OpenPGP</h3>
<ul role="list"> <ul role="list">
<% example_link = link_to "example", "https://kosmos.org/.well-known/openpgpkey/hu/yuca4ky39mhwkjo78qb8zjgbfj1hg3yf.txt?l=jimmy", <% example_link = link_to "example", "https://accounts.kosmos.org/.well-known/openpgpkey/hu/yuca4ky39mhwkjo78qb8zjgbfj1hg3yf.txt?l=jimmy",
target: "_blank", class: "text-gray-500 underline" %> target: "_blank", class: "text-gray-500 underline" %>
<%= render FormElements::FieldsetComponent.new( <%= render FormElements::FieldsetComponent.new(
title: "Public key", title: "Public key",

View File

@ -63,10 +63,9 @@ export class LdapPolicy implements NPolicy {
out['accept'] = false; out['accept'] = false;
out['msg'] = 'Only members can publish notes on this relay'; out['msg'] = 'Only members can publish notes on this relay';
} }
} catch (e) { } catch (ex) {
out['accept'] = false; out['accept'] = false;
out['msg'] = 'Auth service temporarily unavailable'; out['msg'] = 'Auth service temporarily unavailable';
console.warn(`[ldap-policy] Auth service temporarily unavailable: ${e.message}`)
} finally { } finally {
await client.unbind(); await client.unbind();
return ['OK', id, out['accept'], out['msg']]; return ['OK', id, out['accept'], out['msg']];

View File

@ -4,6 +4,6 @@ add: attributeTypes
attributeTypes: ( 1.3.6.1.4.1.61554.1.1.2.1.21 attributeTypes: ( 1.3.6.1.4.1.61554.1.1.2.1.21
NAME 'nostrKey' NAME 'nostrKey'
DESC 'Nostr public key' DESC 'Nostr public key'
EQUALITY caseExactIA5Match EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE ) SINGLE-VALUE )