I hope it’s ok to post random feature requests/suggestions here.
I have a Discourse instance set up so that users can authenticate with a Google Apps Hosted Domain (in my case @vt.edu). I have observed that Discourse assigns user names based on combining first + last name it obtains via OAuth2 - e.g., First_Last.
What I’d much prefer is if the proposed username matched the user portion of the email account user@vt.edu since user is an identifier used elsewhere whereas First_Last is not. Moreover, First_Last is not guaranteed to be unique (John_Smith) whereas the user id is. This would for my use case help with the data explorer plugin when I need to match statistics against other records and just provide an overall more uniform experience.
Credo che @andrei abbia rimosso del tutto questa opzione a causa delle implicazioni sulla privacy quando si creava un nome utente “automaticamente” in base all’e-mail?
Non esattamente. Non stiamo rimuovendo questa funzionalità, la stiamo solo disabilitando con la possibilità di attivarla utilizzando l’impostazione del sito use_email_for_username_and_name_suggestions.
Inoltre, si noti che questa modifica è stata apportata per DiscourseConnect, ma non per altri metodi di autenticazione (inclusa l’autenticazione tramite Google). Ma la correzione per altri metodi arriverà presto.
Inoltre, durante la generazione del nome utente, il nome completo ha la priorità sull’email; gli autenticatori tentano di utilizzare l’email per i suggerimenti del nome utente solo se i campi username e full-name nel payload sono vuoti. Questo è qualcosa che può essere personalizzato con un plugin. Ma utilizzare l’email come fonte principale per i suggerimenti del nome utente non è qualcosa che vogliamo fare per impostazione predefinita, specialmente per l’autenticazione tramite Google. Il motivo è che in questo caso è possibile scoprire le email di tutti gli utenti del forum semplicemente aggiungendo @gmail.com ai nomi utente.