Skip to content

Commit

Permalink
feat: #6015 add apps content (#6326)
Browse files Browse the repository at this point in the history
* feat: #6015 adds apps flow content

* chore: pre-push fixes
  • Loading branch information
willmcvay authored Mar 8, 2022
1 parent cfb4bb3 commit 67d4bad
Show file tree
Hide file tree
Showing 128 changed files with 3,824 additions and 1,700 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions packages/api-key-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"eslint-plugin-prettier": "^4.0.0",
"jest": "27.4.5",
"serverless": "^2.69.1",
"serverless-offline": "^8.5.0",
"serverless-plugin-log-retention": "^2.0.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,45 @@ Object {
class="ecbqyq6-el-snack-holder"
/>
<h1
class="e2dm5rh-el-title"
class="evblxhy-el-title"
>
will-test-dev-co-voracious-person
</h1>
<h2
class="e1byern-el-subtitle"
>
Authenticating Your App
</h2>
<p
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
Client Side Apps use our identity provider
<a>
Reapit Connect
</a>
to authenticate against our API. Your application will need to re-direct to Reapit Connect where we will handle user login and in turn, re-direct back to your app with a code in the url that you exchange for access and id JWTs, referred to as
<a>
Authorization Code flow.
</a>
You will need the Client Id and Redirect Uris below to configure Reapit Connect.
</p>
<p
class="e11jaxfn-el-has-grey-text etrchfm-el-has-section-margin e15ggth7-el-body-text"
>
To make this process easier, we provide you with an authentication module for client-side apps,
<a>
Connect Session
</a>
, which comes bundled with our
<a>
Create React App Template
</a>
for quick start client-side development.
</p>
<div
class="e20pb60-el-grid"
>
Expand Down Expand Up @@ -48,12 +83,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Authentication Client Id
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_EXTERNAL_ID
</p>
Expand Down Expand Up @@ -106,12 +141,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Authentication Client Secret
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_EXTERNAL_ID
</p>
Expand Down Expand Up @@ -224,12 +259,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
App Id
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_APP_ID
</p>
Expand All @@ -245,12 +280,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Redirect Uri(s)
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
https://foo.bar
</p>
Expand All @@ -259,12 +294,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Sign Out Uri(s)
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
https://foo.bar
</p>
Expand All @@ -276,12 +311,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Integration Type
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
You have a client side authenticated integration that will not render within the AgencyCloud desktop CRM
</p>
Expand All @@ -294,12 +329,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
App Status
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
Your app is live and public in the AppMarket with a pending revision under review
</p>
Expand All @@ -309,7 +344,7 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Permissions
</h2>
Expand Down Expand Up @@ -337,10 +372,45 @@ Object {
class="ecbqyq6-el-snack-holder"
/>
<h1
class="e2dm5rh-el-title"
class="evblxhy-el-title"
>
will-test-dev-co-voracious-person
</h1>
<h2
class="e1byern-el-subtitle"
>
Authenticating Your App
</h2>
<p
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
Client Side Apps use our identity provider
<a>
Reapit Connect
</a>
to authenticate against our API. Your application will need to re-direct to Reapit Connect where we will handle user login and in turn, re-direct back to your app with a code in the url that you exchange for access and id JWTs, referred to as
<a>
Authorization Code flow.
</a>
You will need the Client Id and Redirect Uris below to configure Reapit Connect.
</p>
<p
class="e11jaxfn-el-has-grey-text etrchfm-el-has-section-margin e15ggth7-el-body-text"
>
To make this process easier, we provide you with an authentication module for client-side apps,
<a>
Connect Session
</a>
, which comes bundled with our
<a>
Create React App Template
</a>
for quick start client-side development.
</p>
<div
class="e20pb60-el-grid"
>
Expand Down Expand Up @@ -376,12 +446,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Authentication Client Id
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_EXTERNAL_ID
</p>
Expand Down Expand Up @@ -434,12 +504,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Authentication Client Secret
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_EXTERNAL_ID
</p>
Expand Down Expand Up @@ -552,12 +622,12 @@ Object {
</span>
<div>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
App Id
</h2>
<p
class="e11jaxfn-el-has-grey-text e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text e15ggth7-el-body-text"
>
MOCK_APP_ID
</p>
Expand All @@ -573,12 +643,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Redirect Uri(s)
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
https://foo.bar
</p>
Expand All @@ -587,12 +657,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Sign Out Uri(s)
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
https://foo.bar
</p>
Expand All @@ -604,12 +674,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Integration Type
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
You have a client side authenticated integration that will not render within the AgencyCloud desktop CRM
</p>
Expand All @@ -622,12 +692,12 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
App Status
</h2>
<p
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e1byern-el-body-text"
class="e11jaxfn-el-has-grey-text ewfctk4-el-has-no-margin e15ggth7-el-body-text"
>
Your app is live and public in the AppMarket with a pending revision under review
</p>
Expand All @@ -637,7 +707,7 @@ Object {
class="e14pp0yd-el-col"
>
<h2
class="ewfctk4-el-has-no-margin evblxhy-el-subtitle"
class="ewfctk4-el-has-no-margin e1byern-el-subtitle"
>
Permissions
</h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { useReapitGet } from '@reapit/utils-react'
import { GetActionNames, getActions } from '@reapit/utils-common'
import { reapitConnectBrowserSession } from '../../../../core/connect-session'
import { PermissionChip } from './__styles__'
import { ExternalPages, openNewPage } from '../../../../utils/navigation'

export interface CopyState {
externalId: string
Expand Down Expand Up @@ -96,6 +97,42 @@ export const AppDetail: FC = () => {
) : appDetail ? (
<>
<Title>{name}</Title>
<Subtitle>Authenticating Your App</Subtitle>
{authFlow === 'authorisationCode' && (
<>
<BodyText hasGreyText>
Client Side Apps use our identity provider{' '}
<a onClick={openNewPage(ExternalPages.reapitConnectDocs)}>Reapit Connect</a> to authenticate against our
API. Your application will need to re-direct to Reapit Connect where we will handle user login and in turn,
re-direct back to your app with a code in the url that you exchange for access and id JWTs, referred to as{' '}
<a onClick={openNewPage(ExternalPages.authoizationFlowDocs)}>Authorization Code flow.</a> You will need the
Client Id and Redirect Uris below to configure Reapit Connect.
</BodyText>
<BodyText hasGreyText hasSectionMargin>
To make this process easier, we provide you with an authentication module for client-side apps,{' '}
<a onClick={openNewPage(ExternalPages.connectSessionDocs)}>Connect Session</a>, which comes bundled with our{' '}
<a onClick={openNewPage(ExternalPages.craDocs)}>Create React App Template</a> for quick start client-side
development.
</BodyText>
</>
)}
{authFlow === 'clientCredentials' && (
<>
<BodyText hasGreyText>
Server-side applications authenticate against our API using the{' '}
<a onClick={openNewPage(ExternalPages.clientCredentials)}>Client Credentials authentication flow.</a> This
process involves the exchange of a Client Id and Client Secret for a JWT access token to authenticate
against all requests.
</BodyText>
<BodyText hasGreyText hasSectionMargin>
To make this process easier, we provide you with a NodeJS authentication module for server-side apps,{' '}
<a onClick={openNewPage(ExternalPages.connectSessionDocs)}>Connect Session</a>. For developers in other back
end languages, you might find the{' '}
<a onClick={openNewPage(ExternalPages.connectSessionNodeExample)}>source code</a> helpful as an
implementation example.
</BodyText>
</>
)}
<Grid>
{externalId && (
<Col>
Expand Down
Loading

0 comments on commit 67d4bad

Please sign in to comment.