Follow up on #33, using the same configuration example. Great progress on it overall, but it is not complete yet according to my testing. The username seems to be correct, but the DID in certain situations seems incorrect.
When a user registers a new account and chooses did:web as the identity type, the registration page (/app/oauth/sso-register) correctly notes that the did will be:
did:web:user.example.social
However, once the user logs in, the DID turns out to be:
did:web:user.bluesky.example.com
This is incorrect. I believe the DID should be based on username, not the server hostname.
fair and factual, will work on this within a week or two unless someone else gets to it first