The login flow now falls back to OAuth client credentials flow when the admin PAT token is not available. This allows login.html to work even when Zitadel PAT generation hasn't been configured yet. - Added get_oauth_token() helper function - Login now tries PAT first, then OAuth client credentials - Includes proper Zitadel scope for API access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
523 B
Bash
Executable file
24 lines
523 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Stopping..."
|
|
pkill -f botserver || true
|
|
pkill -f botui || true
|
|
pkill -f rustc || true
|
|
|
|
echo "Cleaning..."
|
|
rm -f botserver.log botui.log
|
|
|
|
echo "Building..."
|
|
cargo build -p botserver
|
|
cargo build -p botui
|
|
|
|
echo "Starting botserver..."
|
|
RUST_LOG=trace ./target/debug/botserver --noconsole > botserver.log 2>&1 &
|
|
echo " PID: $!"
|
|
|
|
echo "Starting botui..."
|
|
BOTSERVER_URL="http://localhost:8080" ./target/debug/botui > botui.log 2>&1 &
|
|
echo " PID: $!"
|
|
|
|
echo "Done. Logs: tail -f botserver.log botui.log"
|