Scan your whole stack
From OX Research Newsroom
Are you using core-complex-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.3.0
core-complex-client was last scanned on 24 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.3.0 LATEST | 24 Nov 2026 | No rules fired |
| 2.2.2 | 23 Nov 2026 | No rules fired |
| 2.2.1 | 23 Nov 2026 | No rules fired |
| 2.2.0 | 23 Nov 2026 | Not shown |
| 2.1.0 | 23 Nov 2026 | Not shown |
Findings for v2.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
v2.2.2)NİBGAT® Core Complex (NAuth, NChar ve StaticData) için resmi Node.js + Tarayıcı / React Native SDK'sı:
NAuthClient & NCharClient (Node.js / Backend / Confidential): app-hybrid-v1 (ncore-app-v1: AES-256-GCM + RSA-OAEP-SHA256) şifreli Direct API, 4 adımlı parola sıfırlama, e-posta doğrulama, 2FA, hesap kilidi açma, profil/iletişim (NChar) ve çevrimdışı RS256 JWKS doğrulama istemcileri.NAuthSSOClient (core-complex-client/sso): Tarayıcı ve React Native uyumlu gizli anahtarsız OAuth 2.0 Authorization Code + PKCE (S256) + OIDC SSO istemcisi (popup, redirect, tab, saf JS SHA-256 fallback, BroadcastChannel + storage çoklu sekme senkronizasyonu ve yapılandırılabilir Session Monitor).NAuthSSOPortalClient (core-complex-client/portal veya client.SSOPortal / client.SSO.portal): Tarayıcı ve React Native uyumlu, çerez (withCredentials: true) + CSRF (x-nauth-csrf: 1) korumalı NAuth SSO Portal API istemcisi (/nauth/sso/*, /nauth/oauth/*, 2FA, hesap kilidi açma, oturum yönetimi, dil/çeviri kısayolları ve tip güvenli NAuthApiError).NCharPortalClient (core-complex-client/nchar-portal veya client.NCharPortal): Tarayıcı ve React Native uyumlu, gizli anahtarsız (/nchar/sso/*), çerez (withCredentials: true) + CSRF (x-nauth-csrf: 1) ve isteğe bağlı Bearer token destekli merkezi profil yönetim istemcisi (me, editUserProfile, changeUserName, getPastUserNameChanges, e-posta ve telefon yönetimi).StaticDataClient (core-complex-client/static-data veya client.StaticData): Çerezsiz (withCredentials: false) public /static-data/* uç noktaları üzerinden desteklenen dilleri ve servis/ilişki bazlı çeviri paketlerini getiren istemci.CoreComplexClient: Tüm katmanları (SSO, SSOPortal, NCharPortal, StaticData, NAuth, NChar) ve oturum izleme yardımcılarını tek çatı altında birleştiren birleşik istemci.Güvenlik Kuralı:
privateKey,privateKeyIDversaPublicKeybilgileri yalnızca Node.js / backend / confidential ortamlarda kullanılmalıdır. Frontend (SPA / Web / React Native) projelerinde yalnızcaclientIDveredirectUriilecore-complex-client/sso,core-complex-client/portal,core-complex-client/nchar-portalveyacore-complex-client/static-dataalt modüllerini kullanın.
yarn add core-complex-client axios
| Giriş Noktası | Hedef Ortam | İçerik |
|---|---|---|
core-complex-client |
Node.js / Backend & Tam Kullanım | CoreComplexClient, NAuthClient, NCharClient, NAuthSSOClient, NAuthSSOPortalClient, NCharPortalClient, StaticDataClient, NAuthApiError, sabitler (NCHAR_FRONT_URL dahil), PKCE ve hibrit kripto yardımcıları, tüm tipler |
core-complex-client/sso |
Tarayıcı / SPA / React Native | NAuthSSOClient, NAuthSSOPortalClient, NAuthApiError, PKCE yardımcıları, setServerURL / getServerURL ve SSO sabitleri (Node crypto gerektirmez) |
core-complex-client/portal |
Tarayıcı / SPA / React Native | NAuthSSOPortalClient ve NAuthApiError |
core-complex-client/nchar-portal |
Tarayıcı / SPA / React Native | NCharPortalClient ve NAuthApiError (/nchar/sso/* gizli anahtarsız profil API istemcisi) |
core-complex-client/static-data |
Tarayıcı / React Native / Node.js | StaticDataClient (çerezsiz public dil ve çeviri istemcisi) |
NAuthSSOClient).env (Frontend Uygulamanız)Development (.env):
NAUTH_CLIENT_ID=UYGULAMANIZIN_APP_UUID_DEGERI
NAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
NAUTH_POST_LOGOUT_REDIRECT_URI=http://localhost:3000
NAUTH_FRONT_URL=http://localhost:3200
NAUTH_API_URL=http://localhost:81
Production (.env.production):
NAUTH_CLIENT_ID=UYGULAMANIZIN_APP_UUID_DEGERI
NAUTH_REDIRECT_URI=https://uygulamaniz.com/auth/callback
NAUTH_POST_LOGOUT_REDIRECT_URI=https://uygulamaniz.com
NAUTH_FRONT_URL=https://nauth.nibgat.space
NAUTH_API_URL=https://core.nibgat.space
import {
NAuthSSOClient
} from "core-complex-client/sso";
const sso = new NAuthSSOClient({
postLogoutRedirectUri: process.env.NAUTH_POST_LOGOUT_REDIRECT_URI,
redirectUri: process.env.NAUTH_REDIRECT_URI,
clientID: process.env.NAUTH_CLIENT_ID,
frontUrl: process.env.NAUTH_FRONT_URL,
apiUrl: process.env.NAUTH_API_URL
});
// Popup ile giriş (tarayıcı engellerse loginWithRedirect veya loginWithNewTab kullanılabilir)
const session = await sso.loginWithPopup();
console.log(session.profile, session.accessToken);
// Redirect modunda callback sayfasında çağrılır
const callbackSession = await sso.handleRedirectCallback();
// Mevcut oturumu getir (süresi dolmak üzereyse otomatik refresh yapar)
const activeSession = await sso.getSession(true);
// OIDC UserInfo sorgusu
const userInfo = await sso.getUserInfo();
// OAuth oturum durumunu dinleme (sekmeler arası storage ile senkronize olur)
const unsubscribe = sso.onAuthStateChange((nextSession) => {
console.log("OAuth oturum durumu:", nextSession);
});
// Portal sayfa URL yardımcıları
const registerUrl = sso.buildRegisterUrl();
const forgotPasswordUrl = sso.buildForgotPasswordUrl();
const accountUrl = sso.buildAccountUrl();
// Çıkış (logoutPortal / logoutAllDevices / revokeAllApps / globalSsoLogout desteklenir)
await sso.logout({
globalSsoLogout: true,
logoutPortal: true
});
React Native Notu:
NAuthSSOClientyapılandırmasındastorageseçeneğineAsyncStorageveyaSecureStoreuyumluINAuthSSOStorage(getItem,setItem,removeItem) nesnesi verebilirsiniz. PKCE (S256) hesaplaması Web Crypto / Node Crypto olmayan ortamlarda otomatik olarak dahili saf JavaScript SHA-256 uygulamasına düşer.
Session Monitor)NAuthSSOClient ve CoreComplexClient, tarayıcı SSO çerez oturumunu (/nauth/sso/session) ve OAuth token oturumunu tek bir birleşik INAuthSessionSnapshot nesnesinde takip eder:
onSessionChange yalnızca oturum verisi (durum, kaynak, token veya kullanıcı profili) gerçekten değiştiğinde tetiklenir.requiresConsent) gerektirmiyorsa checkSession() arka planda PKCE ile sessizce OAuth erişim token'ı alabilir (enableSilentTokenExchange: true).BroadcastChannel, storage, window.focus, document.visibilitychange ve periyodik zamanlayıcı desteği dahildir.focusSource): React Native AppState veya Electron gibi ortamlarda özel odak dinleyicisi bağlanabilir.watchSession ile Kullanımimport {
CoreComplexClient
} from "core-complex-client";
const client = new CoreComplexClient({
sessionMonitor: {
enableSilentTokenExchange: true,
enablePeriodicCheck: true,
focusCooldownMs: 4000,
intervalMs: 300000
},
redirectUri: process.env.NAUTH_REDIRECT_URI,
clientID: process.env.NAUTH_CLIENT_ID,
frontUrl: process.env.NAUTH_FRONT_URL,
apiUrl: process.env.NAUTH_API_URL
});
// İlk kontrolü yapar ve odak / görünürlük / broadcast / periyodik takibi başlatır
const stopWatching = client.watchSession({
onSessionChange: (event) => {
console.log("Değişim nedeni:", event.reason);
console.log("Kaynak:", event.current.authSource); // "none" | "browser-sso-cookie" | "oauth-token" | "browser-sso-and-oauth"
console.log("Kullanıcı:", event.current.user);
}
});
// Anlık snapshot okuma veya manuel kontrol
const snapshot = client.getSessionSnapshot();
await client.checkSession("manual");
// Portal login sonrası oturumu anında güncelleme ve diğer sekmelere duyurma
await client.SSO.notifySessionAuthenticated({
ssoSessionID: "sso-session-id",
broadcast: true,
user: snapshot.user
});
// İzlemeyi durdurma (referans sayımlıdır)
stopWatching();
AppState için Özel focusSource Örneğiimport {
AppState
} from "react-native";
import {
NAuthSSOClient
} from "core-complex-client/sso";
const sso = new NAuthSSOClient({
sessionMonitor: {
focusSource: {
subscribe: (onFocus) => {
const subscription = AppState.addEventListener("change", (state) => {
if(state === "active") {
onFocus();
}
});
return () => {
subscription.remove();
};
}
}
},
clientID: "UYGULAMA_UUID",
apiUrl: "https://core.nibgat.space"
});
INAuthSessionMonitorConfig Seçenekleri| Seçenek | Varsayılan | Açıklama |
|---|---|---|
enablePeriodicCheck |
true |
Belirli aralıklarla oturumu otomatik kontrol eder (gizli sekmelerde atlanır). |
intervalMs |
300000 (5 dk) |
Periyodik kontrol aralığı (DEFAULT_SESSION_CHECK_INTERVAL_MS). |
checkOnFocus |
true |
Pencere veya özel focusSource odaklandığında kontrol tetikler. |
checkOnVisibilityChange |
true |
Tarayıcı sekmesi tekrar görünür olduğunda kontrol tetikler. |
focusCooldownMs |
4000 (4 sn) |
Arka arkaya odak tetiklemeleri arasındaki minimum bekleme süresi (DEFAULT_SESSION_FOCUS_COOLDOWN_MS). |
checkOnBroadcast |
true |
BroadcastChannel üzerinden gelen oturum güncellemelerini dinler. |
checkOnStorage |
true |
Diğer sekmelerdeki localStorage oturum değişikliklerini dinler. |
handleRedirectCallbackOnProbe |
true |
checkSession() sırasında URL'de code ve state varsa callback'i otomatik tamamlar. |
enableSilentTokenExchange |
true |
Aktif SSO çerezi varken onay gerektirmeyen uygulamalarda sessiz PKCE token değişimi dener. |
focusSource |
null |
Web dışındaki ortamlar için özel { subscribe(onFocus) } odak kaynağı. |
autoStart |
false |
İstemci oluşturulurken izleyiciyi otomatik başlatır. |
NAuthSSOPortalClient)Tarayıcı ve React Native ortamlarında doğrudan NAuth SSO Portal uç noktalarıyla konuşmak için kullanılır. Her istekte otomatik olarak x-nauth-csrf: 1 başlığı ve varsayılan withCredentials: true ayarı gönderir; hata durumlarında tip güvenli NAuthApiError (status, message, payload) fırlatır.
core-complex-client/portal üzerinden doğrudan oluşturulabilir veya mevcut istemci üzerinden client.SSOPortal / client.SSO.portal olarak erişilebilir.
import {
NAuthSSOPortalClient,
NAuthApiError
} from "core-complex-client/portal";
const portal = new NAuthSSOPortalClient({
apiUrl: "https://core.nibgat.space"
});
try {
// E-posta, kullanıcı adı (userName) veya telefon ({ phoneAreaCode, phone }) ile giriş
const loginRes = await portal.login({
password: "StrongPassword123!",
mail: "user@nibgat.space"
});
if(loginRes.payload?.requires2FA && loginRes.payload.challengeToken) {
await portal.twoFactor.verifyChallenge({
challengeToken: loginRes.payload.challengeToken,
channel: "totp",
code: "123456"
});
}
} catch(error: unknown) {
if(error instanceof NAuthApiError) {
console.error("API Hatası:", error.status, error.message, error.payload);
}
}
// Aktif oturumları listeleme ve tekil oturum / uygulama izni iptali
const sessionsRes = await portal.listSessions();
await portal.revokeSession({
targetType: "sso_session",
targetID: "session-uuid"
});
NAuthSSOPortalClient Metot GruplarıFind threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.