Compare commits

...

27 Commits

Author SHA1 Message Date
Andrei Dekterev 552c689d0c feat(fix auth): fix auth 3 years ago
Rakov Roman 4c7a7e4865 fix(#169): auth api fix 3 years ago
Rakov Roman 135f2c2152 fix(#169): well know url 3 years ago
Rakov Roman cd0559a16d fix(169): return well know 3 years ago
Rakov Roman 033a75939e fix(169): auth api test 3 years ago
Rakov Roman f70c28ccdf fix(#169): auth api test 3 years ago
Rakov Roman 9bfef95cad fix(#169): auth api test 3 years ago
Rakov Roman 631ebdbc1b fix(#169): auth api test 3 years ago
Rakov Roman 42001e70d2 fix(#169): auth api test 3 years ago
Rakov Roman 135318741c fix(#169): auth api test 3 years ago
Rakov Roman 7e1303b342 fix(#169): auth api test 3 years ago
Rakov Roman 39625ba5d3 fix(#169): auth api test 3 years ago
Rakov Roman df1a2c05b8 fix(#169): auth api test 3 years ago
Rakov Roman 500ba5c740 fix(#169): auth api test 3 years ago
Rakov Roman a08c9db9a6 fix(#169): auth test api 3 years ago
Rakov Roman 0dc031de5b fix(#169): auth api test 3 years ago
Rakov Roman 682940303f fix(169): auth api test 3 years ago
Rakov Roman 8863518ee5 fix(auth): auth api test 3 years ago
Rakov Roman c2b7b6a973 fix(auth): auth api test 3 years ago
Rakov Roman 3e4ed189d3 fix(aut): auth api rout 3 years ago
Rakov Roman 2bebe4e793 fix(auth): fixed auth api 3 years ago
Rakov Roman ca9662e9ba fix(auth): testing auth api fix 3 years ago
Rakov Roman c6425b5120 fix(auth): testing auth api fix 3 years ago
Rakov Roman 5e72bbbaab fix(api): testing auth api test 3 years ago
Rakov Roman d8df148dd2 fix(api): testing fix api auth 3 years ago
Dmitry Kosolapov home 9c1509dba3 fix path to api 3 years ago
Dmitry Kosolapov home 5a06c31676 add test-j 3 years ago
  1. 40
      .drone.yml
  2. 7
      Makefile
  3. 4
      src/features/AuthServiceApp/components/Oauth/index.tsx
  4. 14
      src/features/AuthServiceApp/config/routes.tsx
  5. 4
      src/features/AuthStore/helpers.tsx
  6. 2
      src/react-app-env.d.ts

@ -454,6 +454,46 @@ steps:
- aws cloudfront create-invalidation --distribution-id EJYRP4WNVMWD1 --paths "/*"
---
kind: pipeline
type: docker
name: deploy test-j
concurrency:
limit: 1
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/heads/test-j
steps:
- name: deploy script
image: node:16-alpine
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION:
from_secret: AWS_DEFAULT_REGION
REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK_TEST
SSH_KEY_AUTH:
from_secret: SSH_KEY_AUTH
commands:
- apk add --no-cache aws-cli bash git openssh-client make rsync
- npm install --legacy-peer-deps
- make build-j
- aws s3 sync build s3://instat-frontend-test-j --delete
- aws cloudfront create-invalidation --distribution-id EC35D25OP7FSL --paths "/*"
---
kind: pipeline
type: docker

@ -85,6 +85,13 @@ build-i: clean
REACT_APP_STAGE=test-i \
npm run build
build-j: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=test-j \
npm run build
auth-build:
rm -rf build_auth

@ -10,7 +10,7 @@ import type { Settings } from 'features/AuthStore/helpers'
import { getClientSettings } from 'features/AuthStore/helpers'
import { T9n } from 'features/T9n'
import { API_ROOT } from '../../config/routes'
import { getApiUrl } from 'features/AuthServiceApp/config/routes'
import { PAGES } from '../../config/pages'
import { useOauth } from './hooks'
import {
@ -28,7 +28,7 @@ import {
Error,
} from './styled'
const url = `${API_ROOT}/oauth`
const url = getApiUrl('/oauth')
const Oauth = () => {
const {

@ -1,12 +1,16 @@
import { ENV } from 'config/env'
import { ENV, isProduction } from 'config/env'
import { readSelectedApi } from 'helpers/selectedApi'
const APIS = {
preproduction: 'https://auth.insports.tv',
production: 'https://auth.insports.tv',
staging: 'https://auth.test.insports.tv',
preproduction: 'https://api.auth.insports.tv',
production: 'https://api.auth.insports.tv',
staging: 'https://api.auth.test.insports.tv',
}
export const API_ROOT = APIS[ENV]
const env = isProduction ? ENV : readSelectedApi() ?? ENV
export const API_ROOT = APIS[env]
export const getApiUrl = (path: string) => (
`${API_ROOT}${path}${window.location.search}`

@ -6,6 +6,8 @@ import { AUTH_SERVICE } from 'config/routes'
import { ClientIds, ClientNames } from 'config/clients/types'
import { ENV, stageENV } from 'config/env'
import { API_ROOT } from 'features/AuthServiceApp/config/routes'
export interface Settings extends UserManagerSettings {
client_id: ClientIds,
lang?: string,
@ -48,7 +50,7 @@ export const getClientSettings = (): Settings => ({
client_id: client.auth.clientId,
filterProtocolClaims: false,
loadUserInfo: false,
metadataUrl: `${AUTH_SERVICE}/.well-known/openid-configuration${client.auth.metaDataUrlParams || ''}`,
metadataUrl: `${API_ROOT}/.well-known/openid-configuration${client.auth.metaDataUrlParams || ''}`,
redirect_uri: redirectUrl(),
response_mode: 'query',
response_type: 'id_token token',

@ -5,7 +5,7 @@ declare namespace NodeJS {
export interface ProcessEnv {
REACT_APP_CLIENT: 'instat' | 'facr' | 'lff' | 'insports',
REACT_APP_ENV: 'production' | 'preproduction' | 'staging',
REACT_APP_STAGE: 'staging' | 'test-a' | 'test-b' | 'test-c' | 'test-d' | 'test-e' | 'test-f' | 'test-g' | 'test-h' | 'test-i' | 'test',
REACT_APP_STAGE: 'staging' | 'test-a' | 'test-b' | 'test-c' | 'test-d' | 'test-e' | 'test-f' | 'test-g' | 'test-h' | 'test-i' | 'test-j' | 'test',
REACT_APP_TYPE: 'auth-service' | 'ott',
}
}

Loading…
Cancel
Save