Mercurial > prosody-modules
comparison mod_auth_oauth_external/README.md @ 6367:d454eae0d8ef
mod_auth_oauth_external: Add Mastodon example
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 17 Jan 2026 08:12:14 +0100 |
| parents | 866401d78e7d |
| children | 6f2f21b00233 |
comparison
equal
deleted
inserted
replaced
| 6366:866401d78e7d | 6367:d454eae0d8ef |
|---|---|
| 33 -- KeyCloak URLs | 33 -- KeyCloak URLs |
| 34 oauth_external_discovery_url = "https://auth.example.com/auth/realms/ExampleRealm/.well-known/openid-configuration" | 34 oauth_external_discovery_url = "https://auth.example.com/auth/realms/ExampleRealm/.well-known/openid-configuration" |
| 35 oauth_external_token_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/token" | 35 oauth_external_token_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/token" |
| 36 oauth_external_validation_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/userinfo" | 36 oauth_external_validation_endpoint = "https://auth.example.com/auth/realms/ExampleRealm/protocol/openid-connect/userinfo" |
| 37 oauth_external_username_field = "xmpp_username" | 37 oauth_external_username_field = "xmpp_username" |
| 38 ``` | |
| 39 | |
| 40 ### Mastodon Example | |
| 41 | |
| 42 ```lua | |
| 43 VirtualHost "example.net" | |
| 44 authentication = "oauth_external" | |
| 45 | |
| 46 oauth_external_token_endpoint = "https://mastodon.example/oauth/token" | |
| 47 oauth_external_validation_endpoint = "https://mastodon.example/api/v1/accounts/verify_credentials" | |
| 48 oauth_external_username_field = "username" | |
| 49 oauth_external_scope = "read:accounts" | |
| 50 oauth_external_resource_owner_password = true | |
| 38 ``` | 51 ``` |
| 39 | 52 |
| 40 | 53 |
| 41 ## Common | 54 ## Common |
| 42 | 55 |
