MCPcopy Index your code
hub / github.com/casdoor/casdoor-authenticator

github.com/casdoor/casdoor-authenticator @v1.25.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.25.0 ↗ · + Follow
97 symbols 312 edges 36 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Casdoor Authenticator App

GitHub Actions Deploy to GitHub Pages Release GitHub issues GitHub forks License Discord

Casdoor Authenticator App is a cross-platform application for iOS, Android, and Web that provides multi-factor authentication using the TOTP protocol. This app helps secure user accounts by generating time-based one-time passwords (TOTP). The app is developed using React Native with Expo.

Features

  • [x] Multi-platform support (iOS/Android/Web)
  • [x] TOTP-based multi-factor authentication
  • [x] Account synchronization with Casdoor
  • [x] Web deployment via GitHub Pages
  • [ ] Integration with Casdoor's central service and desktop client

Quick Start

git clone https://github.com/casdoor/casdoor-authenticator
cd casdoor-authenticator
npm install && npm run start

Installation

You can use the Casdoor Authenticator App in multiple ways:

  • Web: Access the web version at https://casdoor.github.io/casdoor-authenticator (automatically deployed from master branch)
  • Android: Download and install the APK file directly on your device from the GitHub Releases page

Building from Source

If you prefer to build the app yourself, follow these steps:

Common Steps

git clone https://github.com/casdoor/casdoor-authenticator
cd casdoor-authenticator
npm install

Android build

npm install && npx expo prebuild --platform android
cd android && ./gradlew assembleRelease

The APK file in the app/build/outputs/apk/release/ directory.

Web build

npm install
npm run export:web

The web build will be output to the dist/ directory.

Note: You'll need to have the necessary development environments set up for React Native, Android. Refer to the React Native documentation for detailed setup instructions.

Usage

  • Open the app on your mobile device.
  • Scan QR codes to add accounts and generate TOTP codes for login.
  • Log in to your accounts for synchronization with Casdoor.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Core symbols most depended-on inside this repo

generateToken
called by 8
totpUtil.js
fetchWithTimeout
called by 4
api.js
getAccountKey
called by 4
syncLogic.js
calculateCountdown
called by 2
totpUtil.js
useTokenRefresh
called by 2
totpUtil.js
updateToken
called by 2
totpUtil.js
LoginMethodSelector
called by 2
LoginMethodSelector.js
openActionSheet
called by 2
LoginMethodSelector.js

Shape

Function 97

Languages

TypeScript100%

Modules by API surface

HomePage.js16 symbols
syncLogic.js7 symbols
Header.js7 symbols
useAccountStore.js6 symbols
totpUtil.js6 symbols
api.js5 symbols
ScanLogin.js5 symbols
MSAuthImportLogic.js5 symbols
CasdoorLoginPage.js5 symbols
Language.js4 symbols
SettingPage.js3 symbols
ScanQRCode.js3 symbols

For agents

$ claude mcp add casdoor-authenticator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact