Skip to content

Commit

Permalink
fixing .env issues in AuthContext.js and auth.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Aug 27, 2024
1 parent bc94401 commit ba1e385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/context/AuthContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function AuthProviderWrapper (props) {

const response = await fetch(
configData.KEYCLOAK_URL +
'/auth/realms/Beacon/protocol/openid-connect/token',
'/auth/realms/' + process.env.REACT_APP_KEYCLOAK_CLIENT_REALM + '/protocol/openid-connect/token',
{
method: 'POST',
headers: {
Expand Down
2 changes: 1 addition & 1 deletion permissions/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def get_user_info(access_token):
user_info=''
idp_issuer=None
for env_filename in glob.glob("/beacon/permissions/idp_providers/*.env"):
load_dotenv(env_filename)
load_dotenv(env_filename, override=True)
IDP_ISSUER = os.getenv('ISSUER')
LOG.error(IDP_ISSUER)
if issuer == IDP_ISSUER:
Expand Down

0 comments on commit ba1e385

Please sign in to comment.