...
Bearer Token
Digest
Basic
Software Design
O-AUTH 2
Generate JWT Token for bearer:
GenerateJWTServlet - (GET: http://localhost:8080/SunwaveEMR/generateCode) https://github.com/sunwavehealth/SunwaveEMR/blob/d46b653451ce24623a0c6c72d0aa4e2313c5c0f9/src/main/java/com/sunwave/emr/server/security/GenerateJWTServlet.java#L16
JWT.genrateJWT (POST: http://localhost:8080/SunwaveEMR/token ex SunwaveEMR/token?code=VKYU5F5W1S&client_id=vQl91X514m11dTHHGYQPQkxJqNPxgbdJ&client_secret=C0iGincSREijXqeuB3P9sDdj1ZU6UwqVaUc6VLwhpcx2sBQmB85k8zWuIKSc6gkCAcnXm4JTk2YBFpH5fFDEPH0JyKg4SgchallGmNDc9fNkO1ojZxyKaZ5murQZFDvSW7iJl1CM5JESube8P0cdlqtiLoHb7BP4293S6FqG557TbIPS61ACp0lfAOu9fNXD6L2LD24j7QMRZpM8GE6GQOnY5nTaHGn42eBMjB8iMS9gx4P7iStJirC0vjq2miSC) -https://github.com/sunwavehealth/SunwaveEMR/blob/d46b653451ce24623a0c6c72d0aa4e2313c5c0f9/src/main/java/com/sunwave/emr/server/util/JWT.java#L45
Manage
sw_external_application_code
table “Clinic Integrations”Validate Rest request
Tomcat Filters - https://www.codejava.net/java-ee/servlet/webfilter-annotation-examples
APISecurityFilter - https://github.com/sunwavehealth/SunwaveEMR/blob/51252a9bb7a7d193a9cb929a7c22b04c2ad7fcf5/src/main/java/com/sunwave/emr/server/security/APISecurityFilter.java#L28
APISecurityFilter - Path https://github.com/sunwavehealth/SunwaveEMR/blob/51252a9bb7a7d193a9cb929a7c22b04c2ad7fcf5/src/main/java/com/sunwave/emr/server/security/APISecurityFilter.java#L26
Code Block JSONArray clients = ReportProcessor.toJSONArrayOfJSONObjects( "select sw_external_application_code.created_by, sw_external_application_code.clinic_id " + "from " + " sw_external_application_code, " + " sw_external_application " + "where " + " sw_external_application_code.client_id = sw_external_application.client_id " + "and sw_external_application_code.code = ? " + "and sw_external_application_code.client_id = ? " + "and sw_external_application.client_secret = ?", new String[]{code, clientId, clientSecret});
...