mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
refactor/removed unused props defaultAuthProvider
This commit is contained in:
parent
aa4fea20d4
commit
e755822ee9
11
README.md
11
README.md
@ -74,7 +74,7 @@ Note: You may need to add the pluginGroup to the $HOME/.m2/settings.xml
|
||||
|
||||
* Navigate to test/scala/RunWebApp. You may see a Setup Scala SDK link. Click this and check Scala 2.11.8 or so.
|
||||
|
||||
* In src/main/resources/props create a \<yourloginname\>.props (or default.props) for development. For localhost set api_hostname=http://127.0.0.1:8080, defaultAuthProvider=http://127.0.0.1:8080, base_url=http://localhost:8082, dev.port=8082 and oauth keys (i.e. obp_consumer_key and obp_consumer_secret) obtained from the api (at /consumer-registration) to run [OBP-API](https://github.com/OpenBankProject/OBP-API) in your local environment.
|
||||
* In src/main/resources/props create a \<yourloginname\>.props (or default.props) for development. For localhost set api_hostname=http://127.0.0.1:8080, base_url=http://localhost:8082, dev.port=8082 and oauth keys (i.e. obp_consumer_key and obp_consumer_secret) obtained from the api (at /consumer-registration) to run [OBP-API](https://github.com/OpenBankProject/OBP-API) in your local environment.
|
||||
|
||||
* Now **Rebuild** the project so everything is compiled. At this point you may need to select the SDK, see above.
|
||||
|
||||
@ -124,12 +124,11 @@ The keys are obtained by registering as a developer on the Open Bank Project API
|
||||
|
||||
All in all, a props file could look something like:
|
||||
|
||||
api_hostname=https://api.openbankproject.com/api \
|
||||
defaultAuthProvider=https://api.openbankproject.com/api
|
||||
api_hostname=https://api.openbankproject.com/api
|
||||
|
||||
### OR
|
||||
The base url of the api to use for local: \
|
||||
api_hostname=http://127.0.0.1:8080 \
|
||||
defaultAuthProvider=http://127.0.0.1:8080
|
||||
The base url of the api to use for local:
|
||||
api_hostname=http://127.0.0.1:8080
|
||||
|
||||
obp_consumer_key=uodsifnodsfifdsliufdsliufdsfdsfsdfsx \
|
||||
obp_secret_key=iuesbfiyvglxzgifg7eisgei7fglesfi \
|
||||
|
||||
@ -8,9 +8,6 @@
|
||||
# The base url of the api to use (e.g. https://apisandbox.openbankproject.com)
|
||||
api_hostname=FILL_ME_IN
|
||||
|
||||
# For now, this value should be identical to the value of api_hostname
|
||||
defaultAuthProvider=FILL_ME_IN
|
||||
|
||||
# These are the oauth keys obtained from the api (at /consumer-registration)
|
||||
obp_consumer_key=FILL_ME_IN
|
||||
obp_secret_key=FILL_ME_IN
|
||||
|
||||
@ -166,10 +166,6 @@ class Boot extends MdcLoggable{
|
||||
firstChoicePropsDir.toList.flatten ::: secondChoicePropsDir.toList.flatten
|
||||
}
|
||||
|
||||
if(Helper.getPropsValue("defaultAuthProvider").isEmpty) {
|
||||
throw new Exception("defaultAuthProvider must be specified in the props file!")
|
||||
}
|
||||
|
||||
def check(bool: Boolean) : Box[LiftResponse] = {
|
||||
if(bool){
|
||||
Empty
|
||||
|
||||
@ -46,8 +46,6 @@ object ObpAPI extends Loggable {
|
||||
implicit val formats = DefaultFormats
|
||||
val dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
|
||||
|
||||
val defaultProvider = Helper.getPropsValue("defaultAuthProvider").getOrElse("")
|
||||
|
||||
val userNotFoundError = "user (\\S+) at provider (\\S+) not found".r
|
||||
|
||||
final val AccountUrlPath = "/accounts/"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user