Files
archived-next-auth/docs/docs/reference/05-oauth-providers/mattermost.md
Balázs Orbán b20a5f554a feat(providers): add Mattermost provider (#6290)
* added mattermost provider

* upaded docs and removed callback uri

* username -> name

* updated types to match other providers

* cleanup

* add logos

* style sign-in button

* add JSDoc to profile

* add JSDoc comments

* correction

Co-authored-by: Balázs Orbán <info@balazsorban.com>
delete mattermost icons
2023-01-07 07:47:30 +01:00

827 B

id, title
id title
mattermost Mattermost

Documentation

https://developers.mattermost.com/integrate/apps/authentication/oauth2

Configuration

http://my-cool-server.cloud.mattermost.com/mycoolteam/integrations/oauth2-apps

Options

The Mattermost provider comes with a set of default options:

You can override any of the options to suit your own use case.

Example

import Mattermost from "@auth/core/providers/mattermost";
...
providers: [
  Mattermost({
    // The base url of your Mattermost instance. e.g https://my-cool-server.cloud.mattermost.com
    clientId: env.MATTERMOST_ID,
    clientSecret: env.MATTERMOST_SECRET,
    issuer: env.MATTERMOST_ISSUER,
  })
]
...