npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

azure-ad-2fa-reset

v1.0.1

Published

Azure AD 2FA Reset CLI

Readme

🇬🇧 For the English click here

~ 🇹🇷 ~


Azure AD 2FA Sıfırlama

Azure AD kiracınızdaki bir kullanıcı için Microsoft Graph kullanarak iki faktörlü kimlik doğrulama (2FA) yöntemlerini sıfırlayan hafif bir CLI aracı.


İçindekiler


Genel Bakış

azure-ad-2fa-reset şunları yapar:

  1. İstemci kimlik bilgilerinizi kullanarak Azure AD’e bağlanır
  2. Hedef kullanıcıyı e-posta adresiyle bulur
  3. Kayıtlı tüm kimlik doğrulama yöntemlerini listeler
  4. Şifre dışındaki tüm 2FA yöntemlerini (OATH/TOTP, Authenticator uygulaması, telefon, FIDO2) kaldırır
  5. Sadece şifre yönteminin kaldığını doğrular

Kurulum

Üç farklı yöntemle yükleyebilirsiniz:

  1. Global kurulum (sık kullanımlar için önerilir)

    npm install -g azure-ad-2fa-reset
  2. npx ile (yükleme gerekmez)

    npx azure-ad-2fa-reset
  3. Proje bağımlığı olarak yerel kurulum

# Prod ortamında
npm install --save azure-ad-2fa-reset

# Dev ortamında
npm install --save-dev azure-ad-2fa-reset

Yapılandırma

Çalıştırmadan önce Azure AD uygulama kimlik bilgilerinizi ve hedef kullanıcının e-posta adresini ortam değişkenleriyle sağlamalısınız. Çalışma dizininizde .env adında bir dosya oluşturun:

TENANT_ID=your-tenant-id
CLIENT_ID=your-client-id
CLIENT_SECRET=your-client-secret
[email protected]

İpucu: You can also export these in your shell:

export TENANT_ID=…
export CLIENT_ID=…
export CLIENT_SECRET=…
export USER_EMAIL=…""

Kullanım

Paket yüklendikten veya npx ile çalıştırıldıktan sonra tek yapmanız gereken:

azure-ad-2fa-reset

Ekranda göreceğiniz:

  • Kullanıcı bilgileri ve detayları
  • Mevcut kimlik doğrulama yöntemlerinin listesi
  • Her bir 2FA yönteminin adım adım silinmesi
  • Sadece şifre yönteminin kaldığını onaylayan nihai rapor

Sorun Giderme

  • Geçersiz kimlik bilgileri veya ağ hatası

    • TENANT_ID, CLIENT_ID, CLIENT_SECRET değerlerinizi kontrol edin.
    • İnternet bağlantınızı doğrulayın.
  • İzin reddedildi

    • Azure AD uygulamanızın şu Graph API izinlerine sahip olması gerekir:
      • UserAuthenticationMethod.ReadWrite.All
      • Directory.ReadWrite.All
    • Azure Portal’dan bu izinleri verip yönetici onayı (admin consent) alın.
  • Bazı yöntemler silinemiyor

    • Değişikliklerin yansıması 5–15 dakika sürebilir.
    • Tekrar deneyin veya kalan yöntemleri Azure Portal’dan manuel silin.