Skip to content

Rework into a safe, demo-first JVM package for Maven Central#1

Merged
UsmanovMahmudkhan merged 1 commit into
mainfrom
rework/demo-safe-maven-central
Jun 7, 2026
Merged

Rework into a safe, demo-first JVM package for Maven Central#1
UsmanovMahmudkhan merged 1 commit into
mainfrom
rework/demo-safe-maven-central

Conversation

@UsmanovMahmudkhan

Copy link
Copy Markdown
Owner

Summary

Reworks the project from a Sejong University login automation/scraper into a safe, educational/demo JVM package ready for Maven Central.

  • Removed all real-system authenticators (Portal SSO, Classic, Moodler, DoSejong) and LegacyAuth, which posted real credentials to live endpoints and scraped authenticated session pages. Also dropped the jsoup dependency and the marketing docs site that described them.
  • New public API under io.github.usmanovmahmudkhan.campusauth: CampusAuthClient, AuthProvider, AuthRequest, AuthResult, CampusMember, CampusRole, CampusAuthException, InvalidCredentialsException, ProviderUnavailableException, and the in-memory DemoAuthProvider (default demo-student/demo-password, constant-time compare).
  • Minimal CLI verify --provider demo --id <id> — reads the password without echo, never prints/logs it.
  • JUnit 5 suite (23 tests): success, failure, null/blank id+password validation, exception behavior, public API, and CLI.
  • pom.xml for Maven Central: coordinates io.github.usmanovmahmudkhan:campus-auth-java:0.1.0, Java 17, sources/javadoc jars, GPG signing + central-publishing-maven-plugin in a release profile.
  • GitHub Actions: CI (mvn -B clean verify) and manual workflow_dispatch release.
  • Rewrote README, SECURITY, CHANGELOG, CONTRIBUTING; fixed SUPPORT and LICENSE.

Verification

mvn -B clean verify passes (23 tests); runnable CLI jar verified manually.

Notes

Not yet published to Maven Central. Namespace io.github.usmanovmahmudkhan is verified on the Sonatype Central Portal.

🤖 Generated with Claude Code

Replace the Sejong login automation/scrapers with an in-memory demo provider
and a small public API (CampusAuthClient, AuthProvider, AuthRequest, AuthResult,
CampusMember, CampusRole, exceptions, DemoAuthProvider). Add a no-echo CLI,
JUnit 5 tests, Maven Central publishing config (sources/javadoc/GPG/central
plugin in a release profile), CI and manual release workflows, and rewritten
docs. New coordinates io.github.usmanovmahmudkhan:campus-auth-java:0.1.0, Java 17.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@UsmanovMahmudkhan UsmanovMahmudkhan merged commit ce573d5 into main Jun 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant