Back to Home
musabbozkurt icon

oauth2-authorization-server

Verified Safe

by musabbozkurt

Overview

An OAuth2 Authorization Server managing user authentication, user data, PostgreSQL to Oracle database migration/scripting, AI chat with various models, file storage, and Excel processing.

Installation

Run Command
java -Dspring.ai.mcp.server.stdio=true -Dspring.main.web-application-type=none -Dlogging.pattern.console= -jar oauth2-authorization-server-0.0.1.jar

Environment Variables

  • SPRING_DATASOURCE_URL
  • DB_USERNAME
  • DB_PASSWORD
  • DEEP_SEEK_API_KEY
  • OPENAPI_TITLE
  • OPENAPI_DESCRIPTION
  • OPENAPI_VERSION
  • OPENAPI_OAUTH_FLOW_TOKEN_URL
  • environment-namespace
  • MINIO_ENDPOINT
  • MINIO_ACCESS_KEY
  • MINIO_SECRET_KEY
  • MINIO_BUCKET
  • SPRING_LDAP_URL
  • SPRING_LDAP_PASSWORD
  • SPRING_LDAP_USER_DN
  • SPRING_LDAP_USER_SEARCH_BASE
  • SPRING_LDAP_USER_SEARCH_FILTER
  • ZIPKIN_ENDPOINT
  • OTLP_METRICS_EXPORT_URL
  • OPENTELEMETRY_TRACING_EXPORT_OTLP_ENDPOINT
  • OPENTELEMETRY_LOGGING_EXPORT_OTLP_ENDPOINT

Security Notes

The server employs robust Spring Security features including JWT authentication, custom authentication providers, and session management with Redis. XSS prevention is implemented via `XssRequestWrapper` and `XssSanitizerUtils`, and HTTP security headers (X-XSS-Protection, Content-Security-Policy) are configured. Sensitive configurations like database credentials, API keys, and LDAP settings are externalized through environment variables, with safe defaults for development. RSA keys for JWT are loaded or generated on startup and stored locally, which is generally secure if the `jwt.key.path` is adequately protected. No direct hardcoded production secrets or `eval`-like dangerous patterns were found. The `logout` endpoint's redirect behavior, while standard for Spring Security, relies on the `referer` header which should ideally be validated further, though XSS filters provide some mitigation.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassMedium
Avg Tokens750
Stars5
Forks2
Last Update2026-01-13

Tags

OAuth2Authorization ServerSpring BootDatabase ToolsAI/LLM