Auth API
SaaSus Auth API Schema (1.0.0)
スキーマ
基本設定情報の取得
SaaS ID を元に設定されているドメイン名と CNAME レコードを取得します。 取得した CNAME レコードを DNS に設定することで、ログイン画面を生成します。
Authorizations:
Bearer
Responses
Response samples
- 200
- 500
Content type
application/json
{- "domain_name": "dev.saasus.io",
- "is_dns_validated": false,
- "certificate_dns_record": {
- "type": "CNAME",
- "name": "_k90jaskdfawehro.domain-of-saasus-client.com.",
- "value": "_cmojwc239j102mosd9.acm-validations.aws."
}, - "cloud_front_dns_record": {
- "type": "CNAME",
- "name": "_k90jaskdfawehro.domain-of-saasus-client.com.",
- "value": "_cmojwc239j102mosd9.acm-validations.aws."
}, - "dkim_dns_records": [
- {
- "type": "CNAME",
- "name": "_k90jaskdfawehro.domain-of-saasus-client.com.",
- "value": "_cmojwc239j102mosd9.acm-validations.aws."
}
], - "default_domain_name": "d78bh0l3saarv.cloudfront.net",
- "from_email_address": "test@example.com",
- "reply_email_address": "test@example.com",
- "is_ses_sandbox_granted": false
}
基本設定情報の更新
SaaS ID を元にパラメータとして設定したドメイン名を設定更新します。 CNAME レコードが生成されますので、 DNS に設定して下さい。 既に稼働中の SaaS アプリケーションに設定している場合には、動作に影響があります。
Authorizations:
Bearer
Request Body schema: application/json
domain_name required | string ドメイン名 |
from_email_address required | string 認証メールの送信元メールアドレス |
reply_email_address | string 認証メールの返信元メールアドレス |
Responses
Request samples
- Payload
Content type
application/json
{- "domain_name": "dev.saasus.io",
- "from_email_address": "test@example.com",
- "reply_email_address": "test@example.com"
}
Response samples
- 500
Content type
application/json
{- "type": "string",
- "message": "string",
- "data": {
- "sign_in_page_url": "auth.dev.saasus.io"
}
}
Response samples
- 200
- 500
Content type
application/json
{- "sign_up": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "create_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "resend_code": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "forgot_password": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "update_user_attribute": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "verify_user_attribute": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "authentication_mfa": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "invite_tenant_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "verify_external_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}
}
通知メールテンプレートを更新
各種通知メールテンプレート更新します。
Authorizations:
Bearer
Request Body schema: application/json
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) | |
object (MessageTemplate) |
Responses
Request samples
- Payload
Content type
application/json
{- "sign_up": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "create_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "resend_code": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "forgot_password": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "update_user_attribute": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "verify_user_attribute": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "authentication_mfa": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "invite_tenant_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}, - "verify_external_user": {
- "subject": "Verify your new account",
- "message": "The verification code to your new account is {####}"
}
}
Response samples
- 500
Content type
application/json
{- "type": "string",
- "message": "string",
- "data": {
- "sign_in_page_url": "auth.dev.saasus.io"
}
}
Response samples
- 200
- 500
Content type
application/json
{- "sign_up_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}, - "sign_in_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}, - "password_reset_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}
}
認証系画面設定情報設定
認証系画面設定情報(新規登録・ログイン・パスワードリセット等)を更新します。
Authorizations:
Bearer
Request Body schema: application/json
object (CustomizePageProps) | |
object (CustomizePageProps) | |
object (CustomizePageProps) |
Responses
Request samples
- Payload
Content type
application/json
{- "sign_up_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}, - "sign_in_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}, - "password_reset_page": {
- "html_contents": "<html><div>画面内容</div></html>",
- "is_terms_of_service": true,
- "is_privacy_policy": true
}
}
Response samples
- 500
Content type
application/json
{- "type": "string",
- "message": "string",
- "data": {
- "sign_in_page_url": "auth.dev.saasus.io"
}
}
Response samples
- 200
- 500
Content type
application/json
{- "title": "SaaSus",
- "google_tag_manager_container_id": "GTM-XXXXXXX"
}
認証認可基本情報更新
認証認可基本情報を更新します。
Authorizations:
Bearer
Request Body schema: application/json
icon required | string <base64> サービスアイコン |
favicon required | string <base64> ファビコン |
title required | string サービス名 |
terms_of_service_url required | string 利用規約URL |
privacy_policy_url required | string プライバシーポリシーURL |
google_tag_manager_container_id required | string Google Tag Manager コンテナ ID |
Responses
Request samples
- Payload
Content type
application/json
{- "icon": "data:image/png;base64,ZDMiIHN0UmVmOmRvY3VtZW50SUQ9Inhtc==",
- "favicon": "data:image/png;base64,ZDMiIHN0UmVmOmRvY3VtZW50SUQ9Inhtc==",
- "title": "SaaSus",
- "google_tag_manager_container_id": "GTM-XXXXXXX"
}
Response samples
- 500
Content type
application/json
{- "type": "string",
- "message": "string",
- "data": {
- "sign_in_page_url": "auth.dev.saasus.io"
}
}