Commit Graph

9 Commits (develop)

Author SHA1 Message Date
Matt Baer d08f067e9c Change copyright notices to Musing Studio LLC
A Bunch Tell is now Musing Studio.
2022-11-10 23:49:16 -05:00
Matt Baer 3008668a7d Error when generic OAuth provider doesn't return a user ID
...on the OAuth access token inspection call. This returns an error and
privately (via logs) prompts the admin to add a `map_user_id` config value.

Fixes #469
2021-06-23 12:43:57 -04:00
Darius Kazemi b262fa144c Making changes per feedback 2020-10-22 13:10:51 -07:00
Darius Kazemi 0aafd0c368 Generic OAuth userinfo properies now configurable
When connecting to a generic OAuth provider, you are never sure what object you'll be receiving from the userinfo endpoint (it isn't actually specified anywhere). So this commit adds mapping values to the generic oauth configuration section of config.ini, allowing the user to specify which keys in the remote endpoint it expects to read the UserID, Username, DisplayName, and Email from. Default values if unspecified remain as they were before this commit.
2020-10-22 12:15:55 -07:00
Darius Kazemi 667cbb97ed Adding scope field to generic OAuth
Some OAuth providers (like Mastodon) do not use the default
"read_user" scope, instead offering a custom scope. The config.ini
for generic OAuth now contains a "scope" field, allowing the admin
to set the scope manually (it defaults to "read_user" if blank).
2020-10-12 20:54:48 -07:00
Matt Baer 95273697f4 Use consistent server User-Agent across application 2020-08-18 12:22:04 -04:00
Keturah Dola-Borg 211d441090 Fix capitalisation of OAuth in display name
Signed-off-by: prichier <>
2020-05-31 00:20:27 +02:00
Keturah Dola-Borg 7b71d455a8 Apply go fmt
Signed-off-by: prichier <>
2020-05-31 00:20:21 +02:00
Keturah Dola-Borg 75ca5cd417 Add generic oauth module
Signed-off-by: prichier <>
2020-05-30 23:59:02 +02:00