All Projects → nates → disauth

nates / disauth

Licence: MIT license
📖 A Discord OAuth2 PHP class.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to disauth

cordova-spotify-oauth
🔐 Easy Spotify authentication for Cordova / PhoneGap apps
Stars: ✭ 15 (+25%)
Mutual labels:  oauth2
mantle
📒 Easy and effective communication for any team or community.
Stars: ✭ 30 (+150%)
Mutual labels:  oauth2
ertis-auth
Generic token generator and validator service like auth
Stars: ✭ 28 (+133.33%)
Mutual labels:  oauth2
wiresteward
Wireguard peer manager
Stars: ✭ 50 (+316.67%)
Mutual labels:  oauth2
portal
A hub-and-spoke platform for organizations to effectively manage their operations and data. Uses GSuite.
Stars: ✭ 26 (+116.67%)
Mutual labels:  oauth2
omniauth-okta
OAuth2 strategy for Okta
Stars: ✭ 29 (+141.67%)
Mutual labels:  oauth2
Simpler
Simpler是一款轻量级的第三方微博应用,具有微博的基础功能,兼有外观优雅,运行流畅,内存占用低,省电省流量等特点。
Stars: ✭ 27 (+125%)
Mutual labels:  oauth2
lumen-oauth2
OAuth2 module for the Lumen PHP framework.
Stars: ✭ 29 (+141.67%)
Mutual labels:  oauth2
OAuthLogin.AspNetCore
第三方平台联合登陆(facebook、微信、微博、QQ、Kakao)
Stars: ✭ 43 (+258.33%)
Mutual labels:  oauth2
ueberauth discord
Discord OAuth2 Strategy for Überauth.
Stars: ✭ 12 (+0%)
Mutual labels:  oauth2
OAuth2-Go
OAuth2 sample app using Go
Stars: ✭ 19 (+58.33%)
Mutual labels:  oauth2
OAuthLogin
第三方平台联合登陆(facebook、微信、微博、QQ、Kakao)
Stars: ✭ 57 (+375%)
Mutual labels:  oauth2
rabbitmq-auth-backend-oauth2-spike
See rabbitmq/rabbitmq-auth-backend-oauth2 instead.
Stars: ✭ 17 (+41.67%)
Mutual labels:  oauth2
instagram-oauth-nodejs-server
Node.js server for Intagram-API OAuth purpose.
Stars: ✭ 12 (+0%)
Mutual labels:  oauth2
oauth2-server
A spec compliant, secure by default PHP OAuth 2.0 Server
Stars: ✭ 6,128 (+50966.67%)
Mutual labels:  oauth2
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+1350%)
Mutual labels:  oauth2
ga-fetcher
Fetch Google Analytics data with Google APIs in Node.js 🚠
Stars: ✭ 14 (+16.67%)
Mutual labels:  oauth2
schematics
Schematics for adding Okta Auth to your projects
Stars: ✭ 60 (+400%)
Mutual labels:  oauth2
IdentityServer4.PhoneNumberAuth
Sample passwordless phone number authentication using OAuth in ASP.NET Core 2.2
Stars: ✭ 83 (+591.67%)
Mutual labels:  oauth2
Twitch
[READ ONLY] Subtree split of the SocialiteProviders/Twitch Provider (see SocialiteProviders/Providers)
Stars: ✭ 20 (+66.67%)
Mutual labels:  oauth2

📖 disauth

A Discord OAuth2 PHP class.

🏷️ Example

require('discordOAuth.php');

// Find your information here: https://discord.com/developers/applications
$discord = new discordOauth("Application Client ID", "Application Client Secret", "OAuth2 scope", "Redirect URI");

// After using login function Discord will return a code to the Redirect URI. Only put this on your Redirect URI page.
if(isset($_GET['code'])) {
    $discord->getAccessToken($_GET['code']);
}

if(!$discord->loggedIn()) {
    $discord->login();
} else {
    if(isset($_GET['logout'])) {
        $discord->logout();
    }
    $user = $discord->getUser();
    $guilds = $discord->getGuilds();
    var_dump($user);
    var_dump($guilds);
}

⚠️ Warning

This class is not complete and may not function correctly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].