/
codemaster
/
a-pass-oauth
Обзор
Документация
Войти
/
codemaster
/
a-pass-oauth
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
config.example.json
48 строк
1 KB
mich-master
2512
25 дек 2025, 12:54
25 дек 2025, 12:54
3f850b1
Код
Авторство
О чём код?
{ "server": { "backend": { "ip": "127.0.0.1", "port": "4042" }, "session_duration_minutes": 60, "cookie_secure": false, "datapath": "data/" }, "db": { "host": "localhost", "port": 5432, "database": "db_apass", "user": "apass", "password": "xxx", "max_connections": 100, "sslmode": "disable" }, "html": { "templates": "html" }, "providers": { "vk": { "client_id": "xxx", "redirect_url": "https://a-pass.tech/oauth/callback/vk", "token_url": "https://id.vk.ru/oauth2/auth" }, "yandex": { "client_id": "xxx", "redirect_url": "https://a-pass.tech/oauth/callback/ya", "token_url": "https://oauth.yandex.ru/token" } }, "issuer_url": "http://localhost:8080", "allowed_origins": "*", "jwt_expiry_minutes": 60, "refresh_token_expiry_days": 30, "code_expiry_minutes": 10, "access_token_expiry_minutes": 60, "require_https": false, "cookie_secure": false, "cookie_same_site": "Strict", "supported_scopes": [ "openid", "profile", "email", "address", "phone", "offline_access" ], "supported_claims": [ "sub", "name", "given_name" ], "supported_response_types": [ "code" ], "supported_grant_types": [ "authorization_code", "refresh_token" ] }