Also, OAuth2 module works in a way that it’s filters needs to be above filters of other modules. So uploading it and then trying to run won’t work. Put the . omod in the modules directory and then start. You’ll see now that OAuth2 module is the first module started by OMRS
In the administration section, it does not show the menu options of the oauth module.
Also, it does not let me load another module or create a person:
HTTP ERROR 404
Problem accessing /openmrs/login.jsp. Reason:
/openmrs/login.jsp
In the console this:
[Texto preformateadoThu Jun 21 18:38:39 ART 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option is not set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL = false, or set useSSL = true and provide truststore for server certificate verification.
The code you are using is pure-REST based. i.e. All OAuth2 Client management is done RESTfully so essentially the module is completely independent of Legacy UI module.
Please note : The latest commit is unstable as the student is still working on it and I haven’t merged his changes.
About this, you need to enter your MySQL credentials in webModuleApplicationContext.xml file and re-build the omod and also add “useSSL = false” in your DB connection string.
This Warning is usually thrown when using new versions of mysql-java-connectors.
My goal is to use it only with the FHIR module and to be able to make requests from an external client:
Authenticate me, get an access token with: GET {path} / openmrs / ws / oauth / token
Enter this access token obtained previously in the header (Authorization: Bearer {access_token}) and get some of the web services presented in the FHIR module. For example: GET {path} / ws / rest / patient / {uuid}
How should I do it step by step?
What project should I use?
I would like to use this and that does not affect me in the rest of the system functionality.