Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- added user profile #6

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/reval/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/rherlt/reval/internal/config"
"github.com/rherlt/reval/internal/controller"
"github.com/rherlt/reval/internal/data"
"github.com/rherlt/reval/internal/oidc"
"github.com/rherlt/reval/internal/persistence"

"github.com/gin-contrib/cors"
Expand All @@ -34,6 +35,7 @@ func main() {
corsConfig.AllowHeaders = append(corsConfig.AllowHeaders, config.Current.Gin_Cors_AdditionalAllowedHeaders...)
corsConfig.AllowAllOrigins = config.Current.Gin_Cors_AllowAllOrigins
r.Use(cors.New(corsConfig))
r.Use(oidc.OidcAuthMiddleware(config.Current.Oidc_Authority, config.Current.Oidc_Audience))

//register HTTP handlers for evaluatio api
si := new(controller.EvaluationApiServerInterface)
Expand Down
4 changes: 3 additions & 1 deletion configs/debug/reval.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ GIN_API_BASEURL=/api/
GIN_WEB_BASEURL=/ui/
DB_TYPE=sqlite
DB_SQLITE_CONNECTION=file:../../tmp/reval.db?cache=shared&_fk=1
DATA_IMPORT_GLOB=../../tmp/import_*.json
DATA_IMPORT_GLOB=../../tmp/import_*.json
OIDC_AUDIENCE=http://localhost:8080/api
OIDC_AUTHORITY=https://th-b.eu.auth0.com/
2 changes: 2 additions & 0 deletions configs/docker/reval.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ GIN_WEB_BASEURL=/ui/
DB_TYPE=sqlite
DB_SQLITE_CONNECTION=file:./data/reval.db?cache=shared&_fk=1
DATA_IMPORT_GLOB=./data/import_*.json
OIDC_AUDIENCE=http://localhost:8080/api
OIDC_AUTHORITY=https://th-b.eu.auth0.com/
Loading
Loading