The token URL should not be hard coded.
|
public static final String TOKEN_URL = "https://auth.corps.cloud/auth/realms/water/protocol/openid-connect/token"; |
There are 3 CWBI URLs, one each for dev, test, and prod. And in test environments we create a keycloak or other OIDC provider instance locally.
The data source, like CDA, should inform the clients of the correct provider or providers list of .well-known/openid-connect/configuration URL to pull appropriate information.
The token URL should not be hard coded.
cwms-data-api-client/cwbi-auth-http-client/src/main/java/hec/army/usace/hec/cwbi/auth/http/client/trustmanagers/CwbiAuthTrustManager.java
Line 47 in 60e9746
There are 3 CWBI URLs, one each for dev, test, and prod. And in test environments we create a keycloak or other OIDC provider instance locally.
The data source, like CDA, should inform the clients of the correct provider or providers list of
.well-known/openid-connect/configurationURL to pull appropriate information.