Compare commits
8 Commits
b6968f1742
...
942ae25f09
Author | SHA1 | Date | |
---|---|---|---|
942ae25f09 | |||
4bf6985b87 | |||
308cac5a39 | |||
7f766473ab | |||
c1bac2625c | |||
c5c6765d67 | |||
171524fb83 | |||
3538067da6 |
@ -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
|
||||||
|
@ -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://accounts.kosmos.org/.well-known/openpgpkey/hu/yuca4ky39mhwkjo78qb8zjgbfj1hg3yf.txt?l=jimmy",
|
<% example_link = link_to "example", "https://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",
|
||||||
|
@ -63,9 +63,10 @@ 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 (ex) {
|
} catch (e) {
|
||||||
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']];
|
||||||
|
@ -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 caseIgnoreMatch
|
EQUALITY caseExactIA5Match
|
||||||
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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user