-
Notifications
You must be signed in to change notification settings - Fork 157
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
Introduce ".well-known/smart-configuration", change liberty config layout, and update user's guide #939
Conversation
CREATE INDEX OAUTH20CACHE_EXPIRES ON OAUTHDBSCHEMA.OAUTH20CACHE (EXPIRES ASC); | ||
``` | ||
|
||
3. Attempting to register a client (based on https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_client_registration.html). The endpoint is determined by the id value of the oauthProvider element from the previous step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Attempting to register a client (based on https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_client_registration.html). The endpoint is determined by the id value of the oauthProvider element from the previous step. | |
3. Attempting to register a client (based on the [Client Registration Article](https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_client_registration.html)). The endpoint is determined by the id value of the oauthProvider element from the previous step. |
/> | ||
|
||
<authFilter id="filter"> | ||
<requestUrl urlPattern="/fhir-server" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<requestUrl urlPattern="/fhir-server" /> | |
<requestUrl urlPattern="/fhir-server" /> |
should we make a note about bulkimport not being client usable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should figure out how to secure that endpoint via OAuth too...not totally sure how to handle the different groups yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I marked LGTM (however the comments above are optional and hope to improve the contents) |
e674bde
to
98daf11
Compare
1. Added lots of details to the OAuth 2.0 section of the user's guide 2. Introduces a new JAX-RS resource for the `[base]/.well-known/smart-configuration` endpoint which is expected by SMART apps. But currently it claims we support a lot more than we actually do... Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com> Co-Authored-By: Paul Bastide <pbastide@us.ibm.com>
1. Replace fhirKeystore.jks with a newly-generated fhirKeyStore.p12; the new private key in this keystore can be used for encrypting JWT tokens. 2. Update clientKeystore.jks to .p12 and update both the client and server truststores. 3. Removed the commented-out config in our default server.xml and introduced `oauthProvider.xml` and `oauthResourceServer.xml` at fhir-server/libertyConfig/configDropins/disabled to prep for enabling OpenId Connection / OAuth supported (perhaps behind some flag). 4. Moved batchDS.xml to configDropins/defaults, added the rest of the bulkdata config to it, and renamed to bulkdata.xml 5. Update the user's guide Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
This tells the openliberty docker.ci process not to bother with creating a separate keystore, thereby removing the conflicting values warning: ``` Property password has conflicting values: Secure value is set in file:/opt/ol/wlp/usr/servers/fhir-server/configDropins/defaults/keystore.xml. Secure value is set in file:/opt/ol/wlp/usr/servers/fhir-server/server.xml. ``` I also added a version tag (20.0.0.3) to our Dockerfile to make our builds more consistent...this should be kept in-sync with our liberty-runtime dependency version in `fhir-parent/pom.xml`. Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
I also moved the keystore config back into server.xml to fix warnings generated by tools that aren't dropinConfig-aware. Finally, I removed the dockerfile-maven-plugin from the default build. Now you must invoke the docker build yourself after doing the main build. Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Previously, a user needed to create these tables themselves if they wanted to use liberty as an OAuth 2.0 provider with a databaseStore (e.g. to dynamically manage OAuth 2.0 clients). Now these tables will be created/updated as part of the fhir-persistence-schema create-schema/update-schema actions, or as part of derby bootstrapping. Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added lots of details to the OAuth 2.0 section of the user's guide
Introduced a new JAX-RS resource for the
[base]/.well-known/smart-configuration
endpoint which is expected bySMART apps. Left TODOs to implement the various smart-on-fhir capabilities.
Replaced fhirKeystore.jks with a newly-generated fhirKeyStore.p12; the
new private key in this keystore can be used for encrypting JWT tokens.
Converted clientKeystore.jks to .p12 and updated all client and
server truststores.
Removed the commented-out config in our default server.xml and
introduced
oidcProvider.xml
andoauthResourceServer.xml
atfhir-server/libertyConfig/configDropins/disabled to prep for enabling
OpenId Connection / OAuth supported (perhaps behind some flag).
Moved batchDS.xml to configDropins/defaults, added the rest of the
bulkdata config to it, and renamed to bulkdata.xml
Removed the fhir-install docker build from the default maven build...now you need to explicitly ask for it via either a
docker build
or using the following maven command:This tells the openliberty docker.ci process not to bother with creating
a separate keystore, thereby removing the conflicting values warning:
Previously, a user needed to create these tables themselves if they
wanted to use liberty as an OAuth 2.0 provider with a databaseStore
(e.g. to dynamically manage OAuth 2.0 clients).
Now these tables will be created/updated as part of the
fhir-persistence-schema create-schema/update-schema actions, or as part
of derby bootstrapping.
Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com