Skip to content

Commit 766602e

Browse files
authored
Minor fixes (#29)
1 parent 78a88dc commit 766602e

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

src/content/authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ and verify future requests e.g.
105105
Knowledge of JWT is a prerequisite. Check out the [Understanding JWT](https://developer.atlassian.com/cloud/bitbucket/understanding-jwt-for-apps/)
106106
for apps page if you are unfamiliar with JWT.
107107

108-
For more details on how to create a jwt token, see [Creating a JWT Token](https://developer.atlassian.com/cloud/bitbucket/understanding-jwt-for-apps/#creating-a-jwt-token).
108+
For more details on how to create a JWT token, see [Creating a JWT Token](https://developer.atlassian.com/cloud/bitbucket/understanding-jwt-for-apps/#creating-a-jwt-token).
109109

110110
**Exposing a service**
111111

@@ -136,9 +136,9 @@ called `connectIframeJWTMiddleware`, which decodes the JWT token from Jira, veri
136136
The tenant (Jira site) for each instance of the app is recognized based on this `clientKey`. Step by step,
137137
`connectIframeJWTMiddleware` is responsible for:
138138
- injecting the Jira instance URL into the [iframe](./modules.md/#iframe) url
139-
- decoding jwt token without verification
139+
- decoding JWT token without verification
140140
- get the jira tenant associated with the url
141-
- tries to verify the jwt token
141+
- tries to verify the JWT token
142142
- verify the query string hash
143143
- save the jiraTenant to `res.locals` to be used later if all verifications pass
144144

src/content/config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ app descriptor is:
77

88
- `name`: the name of the Connect app
99
- `description`: description for the Connect app
10-
- `key`: a unique key to identify your connect app. This key must be <= 64 characters
10+
- `key`: a unique key to identify your Connect app. This key must be <= 64 characters
1111
- `baseUrl`: The base url of the remote app, which is used for all communications back to the app instance. For this
1212
sample app, this is the tunneled URL which is set in the `prestart.ts`
1313
- `vendor`: the vendor who is offering this Connect app
1414
- `authentication`: this defines the authentication type to use when signing requests between the host application
15-
and the connect app. The supported types include `jwt`, `JWT`, `none`, `NONE`. We'll go into more detail around
15+
and the Connect app. The supported types include `jwt`, `JWT`, `none`, `NONE`. We'll go into more detail around
1616
authentication in **Auth with JWT and Storage**
1717
- `scopes`: sets the [scopes](https://developer.atlassian.com/cloud/jira/platform/scopes-for-connect-apps/) requested
1818
by the app
@@ -23,7 +23,7 @@ more detail in **Lifecycle Events**
2323
- `modules`: the list of modules this app provides.
2424
- `postInstallPage`: this is the first page where the user lands after clicking on the `Get Started` link after
2525
installing the app. You can think of this page as the main index page for the app.
26-
- `webhooks`: list of all the webhooks for the connect app. For this sample app, we've added some Jira webhooks
26+
- `webhooks`: list of all the webhooks for the Connect app. For this sample app, we've added some Jira webhooks
2727
events. In our **Webhooks** page, we'll provide some webhook logs so you can get a better picture of what your app
2828
will be listening to
2929
- `generalPages`: list of [pages/views](https://developer.atlassian.com/cloud/jira/software/modules/page/) within the app.

src/content/modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Please refer to our documentation for information about [Opting in to cacheable
3939
## Jira modules
4040

4141
For Jira, there are 2 types of modules:
42-
- **basic iFrames** these include [location-based modules](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#location-based-modules),
43-
[new jira issue view modules](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#new-jira-issue-view-modules),
44-
and [pages and dialogs](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#pages-and-dialogs.
42+
- **basic iframes**: these include [location-based modules](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#location-based-modules),
43+
[new Jira issue view modules](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#new-jira-issue-view-modules),
44+
and [pages and dialogs](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#pages-and-dialogs).
4545
- [**advanced modules**](https://developer.atlassian.com/cloud/jira/platform/about-connect-modules-for-jira/#advanced-ui-modules):
4646
these allow you to extend specific Jira features such as the issue tab panel and dashboard
4747
items.

src/routes/atlassian-connect.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ export const connectDescriptorGet = async (_: Request, res: Response): Promise<v
1111
export const connectAppDescriptor = {
1212

1313
/**
14-
* Name of the connect app
14+
* Name of the Connect app
1515
*/
1616
name: "Atlassian Connect Sample Node App",
1717

1818
/**
19-
* Description for the connect app
19+
* Description for the Connect app
2020
*/
2121
description: "Atlassian Connect Sample Node App",
2222

2323
/**
24-
* A unique key to identify your connect app. This key must be <= 64 characters.
24+
* A unique key to identify your Connect app. This key must be <= 64 characters.
2525
*/
2626
key: envVars.APP_KEY,
2727

@@ -33,19 +33,19 @@ export const connectAppDescriptor = {
3333
baseUrl: envVars.APP_URL,
3434

3535
/**
36-
* The vendor who is offering this connect app.
36+
* The vendor who is offering this Connect app.
3737
*/
3838
vendor: {
39-
name: "Node connect app sample",
39+
name: "Node Connect app sample",
4040
url: "https://github.com/atlassian/atlassian-connect-sample-app-node/"
4141
},
4242

4343
/**
44-
* Defines the authentication type to use when signing requests between the host application and the connect app.
44+
* Defines the authentication type to use when signing requests between the host application and the Connect app.
4545
* Types include: `jwt`, `JWT`, `none`, `NONE`
4646
*
47-
* Pages defined in the connect app(by default) run within the iframe inside Jira,
48-
* Defining this authentication will pass the jwt token for each page running within the iframe.
47+
* Pages defined in the Connect app(by default) run within the iframe inside Jira,
48+
* Defining this authentication will pass the JWT token for each page running within the iframe.
4949
*/
5050
authentication: {
5151
type: "jwt"
@@ -91,7 +91,7 @@ export const connectAppDescriptor = {
9191
},
9292

9393
/**
94-
* List of all the webhooks for the connect app.
94+
* List of all the webhooks for the Connect app.
9595
* For this sample app, we've added some Jira webhooks events.
9696
*
9797
* https://developer.atlassian.com/cloud/jira/platform/webhooks/

src/views/layout.squirrelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" href="/public/css/sidebar.css" media="all">
1111
<link rel="stylesheet" href="/public/css/back-nav.css" media="all">
1212

13-
<!-- This script is needed for all the views in the connect app -->
13+
<!-- This script is needed for all the views in the Connect app -->
1414
<script src="https://connect-cdn.atl-paas.net/all.js" data-options="sizeToParent:true" async></script>
1515
</head>
1616

src/views/webhook-logs.squirrelly

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
</div>
1919

2020
<div class="logs-container">
21-
{{@if(it.logs)}}
22-
{{@each(it.logs) => log}}
23-
<pre>{{log.message}} -----> {{log.data}}</pre>
24-
{{/each}}
21+
{{@if(it.logs.length)}}
22+
{{@each(it.logs) => log}}
23+
<pre>{{log.message}} -----> {{log.data}}</pre>
24+
{{/each}}
2525
{{#else}}
26-
<pre>No logs yet!</pre>
26+
<pre>No logs yet!</pre>
2727
{{/if}}
2828
</div>
2929
</div>

0 commit comments

Comments
 (0)