Skip to content

Commit

Permalink
3435
Browse files Browse the repository at this point in the history
  • Loading branch information
pratap0007 committed May 9, 2022
1 parent c513052 commit 2582f72
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
16 changes: 8 additions & 8 deletions api/.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ ENVIRONMENT="development"

POSTGRES_HOST="localhost"
POSTGRES_PORT="5432"
POSTGRES_DB="hub"
POSTGRES_DB="cookie"
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_PASSWORD="pratap07"

GH_CLIENT_ID=""
GH_CLIENT_SECRET=""
GH_CLIENT_ID="0e4bce8060ce83f93752"
GH_CLIENT_SECRET="75610d94d22e556768c68cdd56a63e3ae81ce6d2"
GHE_URL=""

GL_CLIENT_ID=""
GL_CLIENT_SECRET=""
GLE_URL=""

BB_CLIENT_ID=""
BB_CLIENT_ID="b"
BB_CLIENT_SECRET=""

JWT_SIGNING_KEY="TektonHub"
ACCESS_JWT_EXPIRES_IN="1d"
REFRESH_JWT_EXPIRES_IN="1d"
ACCESS_JWT_EXPIRES_IN="4m"
REFRESH_JWT_EXPIRES_IN="2m"

AUTH_BASE_URL=""
AUTH_BASE_URL="http://localhost:4200"

CONFIG_FILE_URL="file://../config.yaml"
1 change: 0 additions & 1 deletion api/pkg/auth/service/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ func (s *service) HubAuthenticate(res http.ResponseWriter, req *http.Request) {
}

//Add cookie and response and send it to in header

refreshToken := cookie{
Name: RefreshToken,
Value: userTokens.Data.Refresh.Token,
Expand Down
2 changes: 0 additions & 2 deletions api/pkg/service/rating/rating_http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
)

func GetChecker(tc *testutils.TestConfig) *goahttpcheck.APIChecker {
// service := validator.NewService(tc.APIConfig, "rating")
checker := goahttpcheck.New()
checker.Mount(server.NewGetHandler,
server.MountGetHandler,
Expand Down Expand Up @@ -194,7 +193,6 @@ func TestGet_Http_ResourceNotFound(t *testing.T) {
}

func UpdateChecker(tc *testutils.TestConfig) *goahttpcheck.APIChecker {
// service := validator.NewService(tc.APIConfig, "rating")
checker := goahttpcheck.New()
checker.Mount(server.NewUpdateHandler,
server.MountUpdateHandler,
Expand Down
4 changes: 2 additions & 2 deletions api/test/config/env.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ POSTGRES_HOST="localhost"
POSTGRES_PORT="5432"
POSTGRES_DB="hub_test"
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_PASSWORD="pratap07"

JWT_SIGNING_KEY="TeKtOnHuB"
ACCESS_JWT_EXPIRES_IN="5m"
ACCESS_JWT_EXPIRES_IN="2h"
REFRESH_JWT_EXPIRES_IN="1h"

GH_CLIENT_ID="client-id"
Expand Down
6 changes: 3 additions & 3 deletions ui/public/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
window.config = {
API_URL: 'https://api.hub.tekton.dev',
AUTH_BASE_URL: '',
REDIRECT_URI: '',
API_URL: 'http://localhost:8000',
AUTH_BASE_URL: 'http://localhost:4200',
REDIRECT_URI: 'http://localhost:3000',
API_VERSION: 'v1'
};

0 comments on commit 2582f72

Please sign in to comment.