supertokens-node icon indicating copy to clipboard operation
supertokens-node copied to clipboard

adding new Third party providers

Open kant01ne opened this issue 4 years ago • 32 comments
trafficstars

One comment per provider, feel free to upvote for the ones you'd like to see implemented first or add new ones. Whilst we add support for the below, in the meantime, you can define them as a custom provider.

kant01ne avatar Feb 10 '21 09:02 kant01ne

Slack

kant01ne avatar Feb 10 '21 09:02 kant01ne

Salesforce

kant01ne avatar Feb 10 '21 09:02 kant01ne

Spotify

kant01ne avatar Feb 10 '21 09:02 kant01ne

Gitlab

kant01ne avatar Feb 10 '21 09:02 kant01ne

Twitch

kant01ne avatar Feb 10 '21 09:02 kant01ne

Linkedin

kant01ne avatar Feb 10 '21 09:02 kant01ne

Discord

Here is the custom third party config for discord (for node js):

{
    id: "discord",
        get: (redirectURI, authCodeFromRequest) => {
            return {
                accessTokenAPI: {
                    url: "https://discord.com/api/oauth2/token",
                    params: {
                        client_id: "CLIENT_ID",
                        client_secret: "CLIENT_SECRET",
                        grant_type: "authorization_code",
                        redirect_uri: redirectURI,
                        code: authCodeFromRequest,
                    }
                },
                authorisationRedirect: {
                    url: "https://discord.com/api/oauth2/authorize",
                    params: {
                        client_id: "CLIENT_ID",
                        scope: "email identify",
                        response_type: "code",
                    }
                },
                getClientId: () => {
                    return "CLIENT_ID";
                },
                getProfileInfo: async (accessTokenAPIResponse) => {
                    let accessToken = accessTokenAPIResponse.access_token;
                    let response = await axios({
                        method: "get",
                        url: "https://discord.com/api/users/@me",
                        headers: {
                            Authorization: `Bearer ${accessToken}`
                        },
                    });
                    let userInfo = response.data;
                    return {
                        id: userInfo.id,
                        email: {
                            id: userInfo.email,
                            isVerified: userInfo.verified
                        }
                    };
                }
            }
        }
}

kant01ne avatar Feb 10 '21 09:02 kant01ne

Auth0

rishabhpoddar avatar Jun 01 '21 07:06 rishabhpoddar

Cognito

rishabhpoddar avatar Jun 01 '21 07:06 rishabhpoddar

VK (most used Russian social network)

johannbuscail avatar Oct 03 '21 12:10 johannbuscail

Yandex

johannbuscail avatar Oct 03 '21 12:10 johannbuscail

WECHAT

johannbuscail avatar Oct 03 '21 12:10 johannbuscail

@johannb75 until we can support the three that you suggested, you can add them as a custom provider.

rishabhpoddar avatar Oct 03 '21 13:10 rishabhpoddar

Azure AD

rromanv avatar Feb 12 '22 22:02 rromanv

LDAP

rromanv avatar Feb 12 '22 22:02 rromanv

Dingtalk

renyijiu avatar Jun 22 '22 03:06 renyijiu

Dingtalk Agree with you.

ShenTianyuKaiser avatar Jul 13 '22 17:07 ShenTianyuKaiser

Whatsapp

docd-dev avatar Jul 25 '22 18:07 docd-dev

Twitter

jagzmz avatar Oct 15 '22 07:10 jagzmz

Office 365

rishi003 avatar Nov 04 '22 01:11 rishi003

Okta

flashtheman avatar Nov 06 '22 22:11 flashtheman

WeChat is much popular in China. Could you please consider about it?

xiujuan-li avatar Nov 07 '22 09:11 xiujuan-li

Telegram

barba94 avatar Mar 24 '23 17:03 barba94

Steam

TeKGameR950 avatar Apr 02 '23 08:04 TeKGameR950

Epic Games

TeKGameR950 avatar Apr 02 '23 08:04 TeKGameR950

Please consider supporting Google OneTap authentication

manikanta1839 avatar Apr 21 '23 05:04 manikanta1839

Stripe

hbcondo avatar May 01 '23 22:05 hbcondo

Paypal

hbcondo avatar May 01 '23 22:05 hbcondo

Discord, Spotify and Line

jukialen avatar Jun 08 '23 22:06 jukialen

Web3 Wallet (Connect Metamask, Rabbit, Frame... https://wagmi.sh/react/guides/connect-wallet)

kartojal avatar Jan 31 '24 17:01 kartojal