This repository has been archived by the owner on Mar 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Ruby on Rails Fidor API Demo Application (#13)
- Loading branch information
Showing
10 changed files
with
96 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
# Changelog Fidor Admin API Schema | ||
|
||
See [commit messages](https://github.com/fidor/fidor_starter_kits/commits/) for details. | ||
|
||
##2016-04 | ||
## 2018-04 | ||
|
||
* add Ruby on Rails Fidor API Demo Application | ||
|
||
## 2016-04 | ||
|
||
* add PHP advanced example | ||
|
||
##2016-01 | ||
## 2016-01 | ||
|
||
* remove client_secret usage in params => moved to BasicAuth header | ||
|
||
##2015-06 | ||
## 2015-06 | ||
|
||
* fix usage of access_token in api URLs, now set in Authorization Header | ||
|
||
##2015-01 | ||
## 2015-01 | ||
|
||
*fix proper TLS handling for node example | ||
* fix proper TLS handling for node example | ||
|
||
##2014-12 | ||
## 2014-12 | ||
|
||
* make starter kits use all required oauth params: state, response_type, grant_type | ||
|
||
|
||
##2014-11 | ||
## 2014-11 | ||
|
||
* init with plain oauth examples for php, ruby, nodejs, golang, 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2014 Georg Leciejewski | ||
Copyright (c) 2018 Fidor Solutions AG | ||
|
||
MIT License | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FIDOR_API_CALLBACK=<APP_URL>/auth/callback | ||
FIDOR_API_CLIENT_ID=<CLIENT_ID> | ||
FIDOR_API_CLIENT_SECRET=<CLIENT_SECRET> | ||
FIDOR_API_LOGGING=true | ||
FIDOR_API_URL=<FIDOR_API_URL> | ||
FIDOR_OAUTH_URL=<FIDOR_OAUTH_URL> |
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,9 @@ | ||
{ | ||
"display_name" : "Ruby on Rails Fidor API Demo Application", | ||
"description" : "Demo Application for the `fidor_api` gem", | ||
"description-de" : "Demo Application for the `fidor_api` gem", | ||
"app_name": "ruby_on_rails_api_demo", | ||
"app_url": "http://localhost:4000", | ||
"callback_urls": "http://localhost:4000/auth/callback", | ||
"language" : "ruby" | ||
} |
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,11 @@ | ||
# Fidor API Demo | ||
|
||
This [Rails](http://rubyonrails.org) application demonstrates the capabilities of Fidor Bank API powered by the [fidor_api](https://github.com/fidor/fidor_api) ruby library. | ||
|
||
## Production Setup & Deployment | ||
|
||
Please read the detailed setup instructions on https://github.com/fidor/fidor_api_demo | ||
|
||
### Heroku deployment | ||
|
||
Copy the generated `app.json` file to the fidor_api_demo directory, this will prefill all required environment variables. |
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,48 @@ | ||
{ | ||
"name": "Fidor API Demo", | ||
"description": "This application demonstrates the capabilities of Fidor Bank API powered by the `fidor_api` ruby library.", | ||
"repository": "https://github.com/fidor/fidor_api_demo", | ||
"keywords": ["fidor", "api", "demo", "rails"], | ||
"env": { | ||
"FIDOR_API_CALLBACK": { | ||
"description": "The customer is redirected back to this URL during the oAuth flow", | ||
"value": "<APP_URL>/auth/callback" | ||
}, | ||
"FIDOR_API_CLIENT_ID": { | ||
"description": "The unique ID assigned to your application by fidor", | ||
"value": "<CLIENT_ID>" | ||
}, | ||
"FIDOR_API_CLIENT_SECRET": { | ||
"description": "The secret assigned to your application by fidor", | ||
"value": "<CLIENT_SECRET>" | ||
}, | ||
"FIDOR_API_LOGGING": { | ||
"description": "Whether the `fidor_api` gem should log all requests done against the Fidor API", | ||
"value": "true" | ||
}, | ||
"FIDOR_API_URL": { | ||
"description": "The API endpoint which the `fidor_api` gem should use for regular requests", | ||
"value": "<FIDOR_API_URL>" | ||
}, | ||
"FIDOR_OAUTH_URL": { | ||
"description": "The API endpoint which the `fidor_api` gem should use for oAuth requests", | ||
"value": "<FIDOR_OAUTH_URL>" | ||
}, | ||
"RAILS_ENV": { | ||
"description": "Runs the rails application in production mode", | ||
"value": "production" | ||
}, | ||
"RAILS_LOG_TO_STDOUT": { | ||
"description": "Tells rails to log to STDOUT instead of a local logfile", | ||
"value": "true" | ||
}, | ||
"RAILS_SERVE_STATIC_FILES": { | ||
"description": "Tells rails to service static files by the application server", | ||
"value": "true" | ||
}, | ||
"SECRET_KEY_BASE": { | ||
"description": "A secret key used for different encryptions and checksums in rails", | ||
"generator": "secret" | ||
} | ||
} | ||
} |