Skip to content

Commit

Permalink
fix: configure sms in console
Browse files Browse the repository at this point in the history
  • Loading branch information
vinckr committed Nov 8, 2024
1 parent 72529c9 commit ad8283f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/kratos/emails-sms/01_sending-emails-smtp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can send emails from your own SMTP server. Follow these steps to configure O

1. Go to <ConsoleLink route="project.emailConfiguration" />
2. Toggle the **Advanced Settings** switch
3. Provide the configuration for your SMTP server
3. Add the configuration for your SMTP server

```mdx-code-block
</TabItem>
Expand Down
10 changes: 9 additions & 1 deletion docs/kratos/emails-sms/10_sending-sms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ via HTTP API, such as Twilio, Plivo, AWS SNS, or your own microservice.

## Configuration

SMS delivery can only be configured through the [Ory CLI](../../guides/cli/01_installation.mdx). Follow these steps:
SMS delivery can be configured through Ory Console or the [Ory CLI](../../guides/cli/01_installation.mdx). Follow these steps to
configure SMS:

```mdx-code-block
<Tabs groupId="console-or-cli">
<TabItem value="console" label="Ory Console" default>
1. Go to <ConsoleLink route="project.smsConfiguration" />
1. Add the configuration for your SMS provider
</TabItem>
<TabItem value="cli" label="Ory CLI">
```

Expand Down
20 changes: 12 additions & 8 deletions src/components/ConsoleLink/console-nav-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ export const brandingPaths: Path[] = [
title: "UI URLs",
href: routes.project.ui.route,
},
{
title: "Email configuration",
href: routes.project.emailConfiguration.route,
},
{
title: "Email templates",
href: routes.project.emailTemplates.route,
},
]

export const authenticationPaths: Path[] = [
Expand Down Expand Up @@ -108,6 +100,18 @@ export const authenticationPaths: Path[] = [
title: "Email verification",
href: routes.project.verification.route,
},
{
title: "Email configuration",
href: routes.project.emailConfiguration.route,
},
{
title: "Email templates",
href: routes.project.emailTemplates.route,
},
{
title: "SMS configuration",
href: routes.project.smsConfiguration.route,
},
{
title: "Sessions",
href: routes.project.authentication.sessionSettings.route,
Expand Down
4 changes: 4 additions & 0 deletions src/components/ConsoleLink/console-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export const routes = {
route: "/projects/[project]/email-templates",
href: (project: string) => `/projects/${project}/email-templates`,
},
smsConfiguration: {
route: "/projects/[project]/sms-configuration",
href: (project: string) => `/projects/${project}/sms-configuration`,
},
sessionSettings: {
route: "/projects/[project]/session-settings",
href: (project: string) => `/projects/${project}/session-settings`,
Expand Down

0 comments on commit ad8283f

Please sign in to comment.