supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
302 stars 81 forks source link

adding new Third party providers #88

Open kant01ne opened 3 years ago

kant01ne commented 3 years ago

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 commented 3 years ago

Slack

kant01ne commented 3 years ago

Salesforce

kant01ne commented 3 years ago

Spotify

kant01ne commented 3 years ago

Gitlab

kant01ne commented 3 years ago

Twitch

kant01ne commented 3 years ago

Linkedin

kant01ne commented 3 years ago

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
                        }
                    };
                }
            }
        }
}
rishabhpoddar commented 3 years ago

Auth0

rishabhpoddar commented 3 years ago

Cognito

johannbuscail commented 3 years ago

VK (most used Russian social network)

johannbuscail commented 3 years ago

Yandex

johannbuscail commented 3 years ago

WECHAT

rishabhpoddar commented 3 years ago

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

rromanv commented 2 years ago

Azure AD

rromanv commented 2 years ago

LDAP

renyijiu commented 2 years ago

Dingtalk

ShenTianyuKaiser commented 2 years ago

Dingtalk Agree with you.

docd-dev commented 2 years ago

Whatsapp

jagzmz commented 2 years ago

Twitter

rishi003 commented 1 year ago

Office 365

flashtheman commented 1 year ago

Okta

xiujuan-li commented 1 year ago

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

barba94 commented 1 year ago

Telegram

TeKGameR950 commented 1 year ago

Steam

TeKGameR950 commented 1 year ago

Epic Games

manikanta1839 commented 1 year ago

Please consider supporting Google OneTap authentication

hbcondo commented 1 year ago

Stripe

hbcondo commented 1 year ago

Paypal

jukialen commented 1 year ago

Discord, Spotify and Line

kartojal commented 9 months ago

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

Waylon-Firework commented 3 months ago

Shopify