Skip to content

PasinduYeshan/wso2-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSO2 Scripts

Utility scripts for deploying, migrating, and managing WSO2 Identity Server.

Deployment

  • Deploy IS with SQL Databasesdeploy/identity_server/configure_is_with_sql_db.sh Provision a Dockerized DB (MySQL, PostgreSQL, MSSQL, Oracle, DB2), wire it into a WSO2 IS pack via deployment.toml, apply patches, and optionally start the server.
  • Backup / Restore DBdeploy/identity_server/backup_restore_db.sh Snapshot and restore Identity + Shared databases for the running container. Supports named snapshots, listing, and interactive restore. See the deploy README.

Migration

  • 5.9 → 7.1 Migrationmigration/5.9-7.1-migration.sh Drives the full IS 5.9.0 → 7.1.0 upgrade, including the PostgreSQL user_id_migration_postgresql.sql step. Includes bundled postgresql-42.7.0.jar JDBC driver.
  • DB Backup Helpersmigration/scripts/db-backup/
    • mysql-db-backup.sh
    • postgresql-db-backup.sh
  • Run SQL Filemigration/scripts/run-sql-file/postgresql-sql-file.sh Execute a .sql file against a PostgreSQL DB.

Users

  • Bulk CSV Generatorusers/generate_bulk_csv.sh <count> [output_file] Generates a CSV (username,givenname,emailaddress) for bulk user import.
  • Delete IS Usersusers/delete_is_users.sh [port] SCIM2 bulk-delete users from a WSO2 IS tenant. Respects an ignore list (admin, etc.).
  • Delete Asgardeo Usersusers/delete_asgardeo_users.sh SCIM2 bulk-delete users from an Asgardeo org.

API Resources

  • Management App Bootstrapperapi-resource/management-app.sh Creates E2E-Test-Suite-Token application, fetches all API resources, and authorizes them on the app. Stores app ID in app_id.txt and resource list in api_resources.json.

Helpers

  • OIDC Token Helperhelpers/openid_token.sh Runs the authorization-code flow against a local IS, prints the authorize URL, exchanges the code, and decodes the resulting ID token.

Logs

  • Error Log Processorlogs/read_error_logs.py Reads a CSV query export and writes it out as a flat text log for easier reading.

About

Wso2 Automation Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors