change urls

This commit is contained in:
b1ek 2023-05-17 15:01:08 +10:00
parent 659304ebd2
commit 9f17e89b5b
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 5 additions and 5 deletions

View File

@ -164,7 +164,7 @@ class UserLogin(APIView):
auth_data = get_oauth_token('https://vvsu.ru/connect', {
'grant_type': 'authorization_code',
'redirect_uri': 'https://pairent.vvsu.ru/sign-in/',
'redirect_uri': 'https://tochka.vvsu.ru/sign-in/',
'code': data['code'],
'code_verifier': data['code_verifier'],
'client_id': 'it-hub-client',
@ -233,8 +233,8 @@ def VVSUAuthProxy(req: HttpRequest):
preq = requests.request(req.method, proxy, headers={
'User-Agent': 'OIDC Client / Pairent',
'Origin': 'http://pairent.vvsu.ru',
'Referer': 'http://pairent.vvsu.ru'
'Origin': 'https://tochka.vvsu.ru',
'Referer': 'https://tochka.vvsu.ru'
});
resp = HttpResponse(preq.content);

View File

@ -7,7 +7,7 @@ const api_path = path => API_ROOT + path;
* Api root path
* @type {string}
*/
const API_ROOT = window.location.protocol + '//' + window.location.host;
const API_ROOT = window.location.protocol + window.location.host;
// ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//' + window.location.host
/** OpenID Connect Client Config
@ -16,7 +16,7 @@ const API_ROOT = window.location.protocol + '//' + window.location.host;
const OIDCConfig = {
authority: api_path('/api/auth/vvsu/'),
client_id: 'it-hub-client',
redirect_uri: 'https://pairent.vvsu.ru/sign-in/',
redirect_uri: 'https://tochka.vvsu.ru/sign-in/',
scope: 'openid vvsu_IdUser vvsu_IdEmpl vvsu_IdStud vvsu_login given_name family_name'
};