import { AuthenticationClient } from "authing-node-sdk";
const authenticationClient = new AuthenticationClient({
appId: "AUTHING_APP_ID",
appSecret: "AUTHING_APP_SECRET",
appHost: "AUTHING_APP_HOST",
});
from authing import AuthenticationClient
# 初始化 AuthenticationClient
authentication_client = AuthenticationClient(
app_id = 'AUTHING_APP_ID', # Authing 应用 ID
app_secret = 'AUTHING_APP_SECRET', # Authing 应用密钥
app_host = 'AUTHING_APP_HOST', # Authing 应用地址
redirect_uri = 'AUTHING_APP_REDIRECT_URI', # Authing 应用配置的登录回调地址
)
<?php
require "vendor/autoload.php";
use AuthenticationClient;
$AUTHING_APP_ID = "AUTHING_APP_ID";
$AUTHING_APP_SECRET = "AUTHING_APP_SECRET";
$AUTHING_APP_HOST = "AUTHING_APP_HOST";
$AUTHING_APP_REDIRECT_URI = "AUTHING_APP_REDIRECT_URI";
$authenticationClient = new AuthenticationClient(
array(
"appId" => $AUTHING_APP_ID,
"appSecret" => $AUTHING_APP_SECRET,
"appHost" => $AUTHING_APP_HOST,
"redirectUri" => $AUTHING_APP_REDIRECT_URI
)
);
import cn.authing.sdk.java.client.AuthenticationClient;
import cn.authing.sdk.java.dto.*;
import cn.authing.sdk.java.model.AuthenticationClientOptions;
// 设置初始化参数
AuthenticationClientOptions clientOptions = new AuthenticationClientOptions();
clientOptions.setAppId("AUTHING_APP_ID");
clientOptions.setAppSecret("AUTHING_APP_SECRET");
clientOptions.setAppHost("AUTHING_APP_HOST");
clientOptions.setRedirectUri("AUTHING_APP_REDIRECT_URI");
// 初始化 AuthenticationClient
AuthenticationClient authenticationClient = new AuthenticationClient(clientOptions);
package main
import ("fmt" "github.com/Authing/authing-golang-sdk/v3/authentication")
var authenticationClient *authentication.AuthenticationClient
var options = authentication.AuthenticationClientOptions{
AppId: "AUTHING_APP_ID", // Authing 应用 ID
AppSecret: "AUTHING_APP_SECRET", // Authing 应用密钥
AppHost: "AUTHING_APP_HOST", // Authing 应用域名,
RedirectUri: "AUTHING_APP_REDIRECT_URI", // Authing 应用配置的登录回调地址
}
func main() {
var err error
authenticationClient, err = authentication.NewAuthenticationClient(&options)
if err != nil {
panic(err)
}
}
using Authing.CSharp.SDK.Models.Authentication;
using Authing.CSharp.SDK.Services;
namespace ConsoleApplication {
public class Program {
static void Main(string[] args) {
MainAsync().GetAwaiter().GetResult();
}
private static async Task MainAsync() {
AuthenticationClientInitOptions clientOptions = new
AuthenticationClientInitOptions {
AppId = "AUTHING_APP_ID",// Authing 应用 ID
AppSecret = "AUTHING_APP_SECRET",// Authing 应用密钥
AppHost = "AUTHING_APP_HOST", // Authing 应用域名
RedirectUri = "AUTHING_APP_REDIRECT_URI"
};
AuthenticationClient authenticationClient = new
AuthenticationClient(clientOptions);
}
}
}