로그인

학교 계정으로 들어오면 수강 명단에 따라 역할이 정해집니다. 개발 서버에서는 유형별 테스트 계정으로 각 역할의 화면과 권한을 확인할 수 있어요.

개발 서버 · 유형별 테스트 계정
자동화 테스트에서
# 세션 쿠키 받기 (쿠키 저장소에 campus_session)
curl -c jar -X POST 'https://campus.prometheon.kr/api/auth/test/login?user=demo-prof'
# 그 쿠키로 API·웹 호출
curl -b jar https://campus.prometheon.kr/api/faculty/sections/sec-demo/gates
# 계정 목록
curl https://campus.prometheon.kr/api/auth/test/accounts

버튼에는 data-test-account="<id>" 가 붙어 있어 브라우저 자동화가 id 로 고를 수 있습니다. 데모 데이터는 node scripts/seed-demo.mjs <API> 로 다시 넣습니다.