Skip to content

Commit

Permalink
Merge e64c8c9 into 953df6f
Browse files Browse the repository at this point in the history
  • Loading branch information
TakutoYoshimura committed Jun 5, 2019
2 parents 953df6f + e64c8c9 commit d00c7cf
Show file tree
Hide file tree
Showing 8 changed files with 951 additions and 30 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
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"
5 changes: 5 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
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"


Loading

0 comments on commit d00c7cf

Please sign in to comment.