#dev 2025-05-11

2025-05-11 UTC
grufwub, claudinec and gregsarjeant joined the channel
#
[tantek]
capjamesg++ for writing up http://ufs.cc/w/rel-edit!
#
Loqi
capjamesg has 46 karma in this channel over the last year (205 in all channels)
geoffo joined the channel
barnaby joined the channel
#
capjamesg
doesnm++
#
Loqi
doesnm has 5 karma in this channel over the last year (10 in all channels)
#
perryflynn
hm, why do I have to allow access to contacts in IndiePass Android App to create an IndieWeb account?
#
doesnm
lol same questions
srazkvt joined the channel
#
perryflynn
I try to implement micropub right now. if I just want to make it work with my website and my API only supports like my own gitlab instance as auth endpoint, I don't need indieauth, right? just RelMeAuth, right?
PsyLok joined the channel
#
perryflynn
brb
christian joined the channel
#
christian
re
barnaby and [qubyte] joined the channel
#
[qubyte]
[Zegnat]++ for the screen reader tip the other day.
#
Loqi
[Zegnat] has 6 karma in this channel over the last year (15 in all channels)
#
doesnm
who are trying beluga social?
barnaby, Guest6, srazkvt, [schmarty] and Pixi` joined the channel
#
perryflynn
is a indiepass dev in the channel? https://github.com/IndiePass/indiepass-android/issues/449
#
Loqi
[preview] [perryflynn] #449 Question: Why the callback is redirected to a centralized website?
ttybitnik joined the channel
#
doesnm
maybe indieauth providers disallow redirecting to deeplink?
#
aaronpk
assuming the app is using PKCE, the website can't do anything with the authorization code anyway, so it's not a problem
#
perryflynn
so PKCE is supported by indieauth? because in this example there is no challenge_method and no code_challenge mentioned: https://indieweb.org/obtaining-an-access-token#Authorization_Endpoint
#
perryflynn
it is included in the request I dumped from indiepass, I just thought until now it's unncessary. especially since the response is a code string which allows me to fetch a token from the token endpoint without any crypto.
#
aaronpk
the wiki needs updating
#
perryflynn
kk, thanks. and the separation between code and token exists, so that the token is directly sent to the server without the client in between, right?
#
aaronpk
the mobile app will send the access token directly to your micropub endpoint. the app's website is only there to help with the redirect during the login flow
#
perryflynn
in theory I should then be able to use the token endpoint of by gitlab instance in my rel="token_endpoint" and just forward the challenge to gitlab. the forwarding / requesting will happening in rel="authorization_endpoint" endpoint with the clientid of my gitlab app in my micropub server.
#
aaronpk
the mobile app expects the user identifier in the token response so just using gitlab's token endpoint directly likely won't work
#
aaronpk
but also that's getting dangerously close to blurring some security boundary lines, i've been having this discussion in other communities as well
#
aaronpk
you're better off putting a sort of IndieAuth facade in front of the gitlab server which issues the access token to the app itself and translates it to a gitlab token on the backend
#
perryflynn
hm ok. I tought it's finde since my clientID in gitlab only allows to get my public profile. then I have no other choice than chain my own openID provider in my micropub server and the actual ID provider in gitlab.
#
perryflynn
maybe I can cheat at least a little bit. in the end I only have to verify the code challenge and if the gitlab auth was successful. I don't need an user repository etc in my micropub server.
Luther_Gray, Pixi, PsyLok, barnaby and jonnybarnes joined the channel
#
GWG
Anyone seen https://maps-black.github.io/ Looks interesting as a map service
barnaby and [tw2113] joined the channel
#
perryflynn
nice, indieauth works. thanks for the hints aaronpk.
ttybitnik, barnaby and PsyLok joined the channel
#
[tantek]
hmm looks like my upgrade to PHP8 last weekend has somehow quietly broken my ^n (e.g. ^1 ^2) footnote transformations into Unicode and auto-linking code
#
[social]
I’m trying to sort the high level framings of some of my work in a web form to see and then manage and categorize my large outline. I could hand code it in PHP, but looking at something quicker (as it is just for me not posted publicly). I’ve been doing all the data transformation from OPML > CSV > data frames > SQL all in Python, so Django or Flask may be viable options (not touched Django in years and never touched Flask).
#
[social]
The size of the SQL is just ~450 rows in one table and then two to four relational tables for categories, facets, and cross linking.
#
[social]
Ideas for PHP or Python related methods for building forms for managing this would be greatly appreciated.
#
perryflynn
I don't understand?
#
[social]
I’m looking to build an interface form for the SQL DB so I can go through and add categories and facets to the nodes / objects.
#
[social]
I can build a PHP web form for this by hand, but after 20 to 25 years I figured there may be an easier way to do that. There are an abundance of option for forms for initially capturing information, but not much for forms for maintenance.
#
[social]
I’m looking for decent options for building the forms to maintain the data and modify it.
#
perryflynn
ah. I think all big php frameworks have a form generator. from my experience there is always one edge case which is not possible with these, so I still stick to make forms by myself with twig templates.
[mail918] joined the channel
#
[mail918]
↩️ I think I found a neat solution using web-components after all. I keep all the microformat important markup and wrap in in a light-dom webcomponent to handle everything else
barnaby, [artlung] and gRegor joined the channel
#
gRegor
I was reminded of the fragility of Atom feeds today, an `nbsp` entity got into my post and broke it. Found out from a truncated post in Monocle.
#
[KevinMarks]
Django has a fairly mature form generator.
#
perryflynn
full indieauth implementation in 14 hours. not bad. login in indiepass works finally including all discovery and info endpoints. tomorrow I can finally start with micropub. but for now, good night.
#
immibis
web dev has an abundance of options but I don't know that any of them are easy
#
[social]
Django has been what I’ve been thinking what I’m leaning toward. I’ve been trying to weigh all options, incase I’m missing something.
#
[social]
The Python package FastHTML looked interesting, but I couldn’t get it to run anywhere (not even local a container). FastHTML didn’t seem to have robust form capability, but it has SQLite built in for some forms and dat use. It is also very new.
#
[KevinMarks]
Jinja2 is a good template language if you want PHP for python
#
[KevinMarks]
The basic principle is that you give it a nested python structure and a template, and the template has enough logic to do foreach and if type stuff
#
perryflynn
same for twig in PHP.
#
[KevinMarks]
So you do enough server side stuff to create a python data structure, then have a template to webify that
#
[KevinMarks]
Yes, related. Also nunjucks in node/json
#
[social]
I am okay coding in Python and PHP, but when I switch between them it takes a bit to get my mind sorted to take the correct approach.
#
perryflynn
I am heavily using jinja2 and twig, there is no big difference between them, so just use your favorite language. :-)
#
[social]
Interesting. Are you creating forms with Jinja2 or twig?
#
perryflynn
With twig. just a twig macro (aka a function) per form field and lets go. https://twig.symfony.com/doc/3.x/tags/macro.html
#
[tantek]
[social] consider also setting up a new URL design for your notes, without having to redo/rebuild your existing blog, if your URL paths allow for it. That way you can immediately start benefitting from posting notes on your own site (rather than social media), and your "past blog" becomes a fixed-in-size "backfill" task, rather than a massive re-engineering task
[aciccarello] and geoffo joined the channel
#
capjamesg
I am experimenting with moving my domain DNS over to Hetzner.
#
capjamesg
If anyone sees any persistent loading problems with my website, let me know!