Authenticate with Oauth2 apis that do not return an email #7037
Replies: 3 comments 1 reply
-
|
I have hacked together a proxy that injects a fake email to Mastodon's This is a hopefully temporary hack though. I think it would be great to know more abut whether what I'm doing makes sense, and whether it would be something interesting to incorporate into wiki.js directly instead of adding one more moving piece to the mix. |
Beta Was this translation helpful? Give feedback.
-
|
I'm curious if anyone has discovered an alternative to using a fake email address for this. I was a bit taken aback by the requirement for an email, as I would like to use Roblox OAuth2, which won't ever provide an e-mail. I'd really appreciate any suggestions for streamlining the process. |
Beta Was this translation helpful? Give feedback.
-
|
Maybe Wiki.js use email address for git connection. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I'm trying to set up a wiki.js installation using a Mastodon server as an authentication backend. However, the Mastodon API does not return the user's email, for privacy reasons.
Understandably, wiki.js refuses to accept as an email something that is not an email:
I would like to understand better this limitation: What does wiki.js use emails for, exactly? Are they used as unique IDs, or must they be valid email addresses capable of receiving emails?
If the former, would it be possible to skip this validation for certain authentication strategies? Or perhaps to allow specifying some kind of template to "coerce" an unique ID returned by the API into an email address? Something like:

Looking forward to hear whether you think my use case makes sense 😄
Beta Was this translation helpful? Give feedback.
All reactions