-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affected Issue(s): Extend OAuth 2.0 support
Resolves sid-indonesia/it-team#333 What this commit has achieved: 1. Added support for Body Authentication on Client Credentials flow 2. TODO implement OAuth 2.0 for sink FHIR Server.
- Loading branch information
1 parent
5150ca1
commit bd0ffb7
Showing
6 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...n/src/main/java/com/google/fhir/analytics/enumeration/ClientCredentialsAuthMechanism.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2020-2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.fhir.analytics.enumeration; | ||
|
||
/** | ||
* A set of enumerations to specify the mechanism for authenticating a client in the Client | ||
* Credentials flow. | ||
*/ | ||
public enum ClientCredentialsAuthMechanism { | ||
/** | ||
* the client sends its client ID and client secret as part of the Authorization header in an HTTP | ||
* request. The Authorization header contains a Base64-encoded string of <code> | ||
* {URL-encoded-client-ID}:{URL-encoded-client-secret}</code> | ||
*/ | ||
BASIC, | ||
|
||
/** | ||
* The client sends its client ID and client secret as parameters in the body of the HTTP request. | ||
* This is similar to Basic Authentication, but instead of sending the credentials in the | ||
* Authorization header, they are sent in the request body. | ||
*/ | ||
BODY, | ||
|
||
/** TODO: Unimplemented yet, as the need for it has not arisen. */ | ||
JWT | ||
} |
2 changes: 1 addition & 1 deletion
2
pipelines/controller/src/main/java/com/google/fhir/analytics/ControlPanelApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters