Skip to content

Commit

Permalink
Remove support for Oauth2 authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Jan 30, 2024
1 parent 5fc4065 commit 04ab99e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
2 changes: 2 additions & 0 deletions demo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
env_file: ../eip.env
environment:
- NUMBER_OF_DEMO_PATIENTS=${NUMBER_OF_DEMO_PATIENTS}
- EIP_PROFILE=prod
- OPENMRS_URL=http://openmrs:8080/openmrs
volumes:
- "./eip/config:/eip-client/config"
- "./eip/routes:/eip-client/routes"
Expand Down
19 changes: 1 addition & 18 deletions demo/eip/config/application.properties
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
# *********************** OAuth2 Configuration ****************************************************************
#
#Enabled Oauth when set to true
oauth.enabled=${OAUTH_ENABLED}

#The client Id of the account
oauth.access.token.uri=${OAUTH_ACCESS_TOKEN_URI}

#The client Id of the account to use to authenticate
oauth.client.id=${OAUTH_CLIENT_ID}

#The client secret of the account to use to authenticate
oauth.client.secret=${OAUTH_CLIENT_SECRET}
#Authentication scope, can be multiple values separated by commas
oauth.client.scope=email
# ----------------------------------------------------------------------------------------------------------------------

# *********************** Configuration of the OpenMRS Web App *********************************************************
#
# OpenMRS user credentials
openmrs.username=${OPENMRS_USER}
openmrs.password=${OPENMRS_PASSWORD}

# OpenMRS base url
openmrs.baseUrl=${OPENMRS_URL}/openmrs
openmrs.baseUrl=${OPENMRS_URL}

# Number of demo patients used to generate demo data, defaults to 0
number.of.demo.patients=${NUMBER_OF_DEMO_PATIENTS}
Expand Down
17 changes: 0 additions & 17 deletions demo/eip/routes/authenticate-to-openmrs-route.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,5 @@
<simple>${exchangeProperty.basic-openmrs-authentication}</simple>
</setHeader>

<!-- If SSO is enabled then override basic authentication in favor of Oauth -->
<setBody>
<simple></simple>
</setBody>
<process ref="oauthProcessor" />
<choice>
<when>
<simple>${body} != null &amp;&amp; ${body} != ""</simple>
<setHeader name="Authorization">
<simple>${body}</simple>
</setHeader>
</when>
</choice>

<setBody>
<simple>${exchangeProperty.body}</simple>
</setBody>
</route>
</routes>

0 comments on commit 04ab99e

Please sign in to comment.