-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR enables tokens to be verified with an OIDC provider. The console service does NOT provide a token from an OIDC provider, a token must retrieved via other means such as OAuth 2.0 PKCE Flow in our sample-web-ui. BREAKING CHANGE: moves JWT configuration to a new "auth" section in the config.yml along. View config.go for complete example.
- Loading branch information
Showing
13 changed files
with
115 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
DISABLE_SWAGGER_HTTP_HANDLER=true | ||
GIN_MODE=release | ||
# DB_URL=postgres://postgresadmin:admin123@localhost:5432/rpsdb | ||
# OAUTH CONFIGURATION | ||
AUTH_CLIENT_ID="" | ||
# ex. "https://login.microsoftonline.com/<tenant-id>/v2.0 for Azure Entra -- used for discovery | ||
AUTH_ISSUER="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
app: | ||
name: "console" | ||
repo: "open-amt-cloud-toolkit/console" | ||
jwtKey: "your_secret_jwt_key" | ||
adminUsername: "standalone" | ||
adminPassword: "G@ppm0ym" | ||
jwtExpiration: 24h | ||
redirectionJWTExpiration: 5m | ||
name: console | ||
repo: open-amt-cloud-toolkit/console | ||
version: DEVELOPMENT | ||
encryption_key: "" | ||
http: | ||
host: "localhost" | ||
host: localhost | ||
port: "8181" | ||
allowed_origins: | ||
- "*" | ||
allowed_headers: | ||
- "*" | ||
|
||
logger: | ||
log_level: "debug" | ||
|
||
log_level: info | ||
postgres: | ||
pool_max: 5 | ||
pool_max: 2 | ||
url: "" | ||
|
||
ea: | ||
url: "http://localhost:8000" | ||
url: http://localhost:8000 | ||
username: "" | ||
password: "" | ||
|
||
auth: | ||
disabled: false | ||
adminUsername: standalone | ||
adminPassword: G@ppm0ym | ||
jwtKey: your_secret_jwt_key | ||
jwtExpiration: 24h0m0s | ||
redirectionJWTExpiration: 5m0s | ||
clientId: "" | ||
issuer: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters