fidor_starter_kits 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d9257e8f3fd57a085a5bfad18e7d08e17f0410d
4
- data.tar.gz: 6cc26babb8d847a711d48556b3285b3a3543cb70
3
+ metadata.gz: cf115559549bd2278bb32ad42914eb50198dac6e
4
+ data.tar.gz: 2d0ebdc5a1a78bf02e0b4c7a3d5eb7f86256af10
5
5
  SHA512:
6
- metadata.gz: 475514d665725df63f3c2047df7b0dd7878f0c8b838045f80603829a938d0e1f4f3dc4e32a05e04e1edee4c9c9d24b5684a323e5c035b8c7fa7a30d9e6e1e101
7
- data.tar.gz: effb9982ec4dea6dab0b50460f6c527b72686259dad4ff31d71d63a8a48a178ccf3e802d36bc8034142174ddf44b3052c22a33085d6bbd0efb4d24d80ff5d30a
6
+ metadata.gz: bdea540d86cd11d32e183a43f0b571b3e112c61573634733cb76b520e438800a29636f824ef3503fd13bce90179ebb0c8a6dbbf458e847617d9e66ef8e24dbd8
7
+ data.tar.gz: c3241a3eb8581540143fd71a890c1e3a81356072ce2be870bdcb988f19e6024913034dbe5824bb73939e40d69475587abcd89dbfba175a4ad8676c33954a551a
@@ -6,7 +6,7 @@ require 'json'
6
6
 
7
7
  module FidorStarterKits
8
8
 
9
- STARTER_KITS = %w{ node_tx golang_plain php_oauth_plain ruby_oauth_plain java_servlet }
9
+ STARTER_KITS = %w{ node_tx golang_transactions php_oauth_plain ruby_oauth_plain java_servlet }
10
10
 
11
11
  class << self
12
12
 
@@ -1,3 +1,3 @@
1
1
  module FidorStarterKits
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
@@ -56,8 +56,8 @@ describe FidorStarterKits do
56
56
 
57
57
  it 'loads the json meta data' do
58
58
  conf = FidorStarterKits.all
59
- expect(conf["golang_plain"]["display_name"]).to eq("Go Plain")
60
- expect(conf["node_tx"]["description"]).to eq("A simple nodejs based app, showing how to get user transactions")
59
+ expect(conf["golang_transactions"]["display_name"]).to eq("Go Transactions")
60
+ expect(conf["node_tx"]["description"]).to eq("NodeJS app getting transactions and accounts. Handling oAuth login.")
61
61
  expect(conf["php_oauth_plain"]["app_name"]).to eq("php_oauth_plain")
62
62
  expect(conf["ruby_oauth_plain"]["app_url"]).to eq("http://localhost:4567")
63
63
  expect(conf["java_servlet"]["callback_urls"]).to eq("http://localhost:8080/JavaServlet/Example")
@@ -0,0 +1,8 @@
1
+ {
2
+ "display_name" : "Go Transactions",
3
+ "description" : "Golang app getting transactions & accounts and handling oAuth based logins.",
4
+ "app_name":"golang_transactions",
5
+ "app_url":"http://localhost:8080",
6
+ "callback_urls":"http://localhost:8080",
7
+ "language" : "golang"
8
+ }
@@ -1,8 +1,8 @@
1
- # Basic Go Example
1
+ # Golang GET Transactions
2
2
 
3
3
  This is a basic example project that demonstrates the Fidor API OAuth
4
- flow. It provides the same functionality as the php example if you would
5
- like to compare the two sample projects.
4
+ flow, saving access-tokens to a session and grabbing transactions and account
5
+ details.
6
6
 
7
7
  ## Usage
8
8
 
@@ -30,8 +30,8 @@ type Config struct {
30
30
  AppUrl string // where to reach this application
31
31
  ClientId string // OAuth Client_id parameter
32
32
  ClientSecret string // OAuth Client_secret parameter
33
- FidorApiUrl string // API endpoint (this changes between Sandbox and Production)
34
- FidorOauthUrl string // OAuth endpoint (this changes between Sandbox and Production)
33
+ FidorApiUrl string // API endpoint e.g Sandbox: https://aps.fidor.de/oauth / Live: https://apm.fidor.de/oauth
34
+ FidorOauthUrl string // OAuth endpoint e.g Sandbox: https://aps.fidor.de / Live: https://api.fidor.de
35
35
  }
36
36
 
37
37
  var fidorConfig = Config{
@@ -87,7 +87,7 @@ const COOKIE_NAME = "GO_SESSION"
87
87
  // session database, available access_tokens are mapped to their cookie-session keys
88
88
  var sessions = make(map[string]string)
89
89
 
90
- // stores a retireved access_token both on the server and the reference in a client-side cookie.
90
+ // stores a retrieved access_token both on the server and the reference in a client-side cookie.
91
91
  func createSession(w http.ResponseWriter, accessToken string) {
92
92
  println(accessToken)
93
93
  rnd := make([]byte, 20, 20)
@@ -180,7 +180,6 @@ func handleOAuthCallback(w http.ResponseWriter, r *http.Request) {
180
180
  func handleLogout(w http.ResponseWriter, r *http.Request, endpoint string) {
181
181
  if cookie, err := r.Cookie(COOKIE_NAME); err == nil {
182
182
  // we have a cookie
183
-
184
183
  // remove it from our stored sessions
185
184
  session := cookie.Value
186
185
  delete(sessions, session)
@@ -3,5 +3,6 @@
3
3
  "description" : "A simple java servlet based app, showing how to get the access token",
4
4
  "app_name":"java_servlet",
5
5
  "app_url":"http://localhost:8080/JavaServlet/Example",
6
- "callback_urls":"http://localhost:8080/JavaServlet/Example"
6
+ "callback_urls":"http://localhost:8080/JavaServlet/Example",
7
+ "language" : "java"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "display_name" : "Node Transactions",
3
- "description" : "A simple nodejs based app, showing how to get user transactions",
2
+ "display_name" : "NodeJS Transactions",
3
+ "description" : "NodeJS app getting transactions and accounts. Handling oAuth login.",
4
4
  "app_name":"node_tx",
5
5
  "app_url":"http://localhost:3141",
6
- "callback_urls":"http://localhost:3141"
6
+ "callback_urls":"http://localhost:3141",
7
+ "language" : "nodejs"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "display_name" : "PHP oAuth Plain",
3
- "description" : "A simple php script, showing how to get the access token",
3
+ "description" : "PHP script getting the access token",
4
4
  "app_name":"php_oauth_plain",
5
5
  "app_url":"http://localhost:8000/example.php",
6
- "callback_urls":"http://localhost:8000/example.php"
6
+ "callback_urls":"http://localhost:8000/example.php",
7
+ "language" : "php"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "display_name" : "Ruby oAuth Plain",
3
- "description" : "A simple Ruby app showing the oAuth dance to get and use the access token. Uses Sinatra as server.",
3
+ "description" : "Ruby app doing the oAuth login to get and use the access token. Uses Sinatra as server.",
4
4
  "app_name":"ruby_oauth_plain",
5
5
  "app_url":"http://localhost:4567",
6
- "callback_urls":"http://localhost:4567"
6
+ "callback_urls":"http://localhost:4567",
7
+ "language" : "ruby"
7
8
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fidor_starter_kits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
@@ -85,9 +85,9 @@ files:
85
85
  - lib/fidor_starter_kits/version.rb
86
86
  - spec/fidor_starter_kits_spec.rb
87
87
  - spec/spec_helper.rb
88
- - starter_kits/golang_plain/.fidor_meta.json
89
- - starter_kits/golang_plain/README.md
90
- - starter_kits/golang_plain/example.go
88
+ - starter_kits/golang_transactions/.fidor_meta.json
89
+ - starter_kits/golang_transactions/README.md
90
+ - starter_kits/golang_transactions/example.go
91
91
  - starter_kits/java_servlet/.classpath
92
92
  - starter_kits/java_servlet/.fidor_meta.json
93
93
  - starter_kits/java_servlet/.project
@@ -1,7 +0,0 @@
1
- {
2
- "display_name" : "Go Plain",
3
- "description" : "A simple Go based app, showing how to get the access token",
4
- "app_name":"golang_plain",
5
- "app_url":"http://localhost:8080",
6
- "callback_urls":"http://localhost:8080"
7
- }