Skip to content

Commit

Permalink
Merge pull request #34 from karabiner-inc/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
TakutoYoshimura committed Jun 5, 2019
2 parents ed1c0c6 + f9538f5 commit 5086192
Show file tree
Hide file tree
Showing 12 changed files with 1,043 additions and 31 deletions.
13 changes: 13 additions & 0 deletions RequestSample_authenticator.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
@url = http://localhost:4001
#@url = https://

### アプリケーション認証(paramsとして指定)
GET {{url}}/app/is_authenticated_app?app_key=test_app_key HTTP/1.1
Content-Type: application/json

### アプリケーション認証(Authorizationとして指定)
GET {{url}}/app/is_authenticated_app HTTP/1.1
Content-Type: application/json
Authorization: test_app_key

### アプリケーション認証(どちらも指定しないとエラー)
GET {{url}}/app/is_authenticated_app HTTP/1.1
Content-Type: application/json

### ユーザー仮登録
POST {{url}}/api/tmp-registration HTTP/1.1
Content-Type: application/json
Expand Down
17 changes: 17 additions & 0 deletions RequestSample_healthcheck.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
############################################
# APIリクエストサンプル集
#
############################################

@url = http://localhost:4001
#@url = https://

###汎用システムヘルスチェック
# result image
# {"message":"health_check_ok"}
GET {{url}}/api/health-check HTTP/1.1
Content-Type: application/json




5 changes: 5 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@ regstered_mail_template: "@user_name@ 様

config :materia, Materia.MailClient,
verify_mail_ses_region: "us-west-2"

# Configure materia application authenticator
# recomend you generate complex app_key by "mix phx.gen.secret" command.
config :materia, Materia.Plug.ApplicationKeyChecker,
app_key: "test_app_key"
7 changes: 6 additions & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config :materia, MateriaWeb.Test.Endpoint,
watchers: []

# Print only warnings and errors during test
config :logger, level: :info
config :logger, level: :debug

# Configure your database
config :materia, Materia.Test.Repo,
Expand Down Expand Up @@ -59,4 +59,9 @@ config :materia, Materia.Accounts,
password_reset_url: "hogehoge.example.com/pw-reset",
password_reset_completed_mail_template_type: "password_reset_completed"

# Configure materia application authenticator
# recomend you generate complex app_key by "mix phx.gen.secret" command.
config :materia, Materia.Plug.ApplicationKeyChecker,
app_key: "test_app_key"


5 changes: 5 additions & 0 deletions config/travis.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ config :guardian, Guardian.DB,
schema_name: "guardian_tokens", # default
#token_types: ["refresh_token"], # store all token types if not set
sweep_interval: 60 # default: 60 minutes

# Configure materia application authenticator
# recomend you generate complex app_key by "mix phx.gen.secret" command.
config :materia, Materia.Plug.ApplicationKeyChecker,
app_key: "test_app_key"
Loading

0 comments on commit 5086192

Please sign in to comment.