-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* authorizeApp and exchangeAuthcode methods * module rename * import fix * lint fix * fix import
- Loading branch information
1 parent
f00b9f2
commit 0391bf6
Showing
9 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/twenty-server/src/engine/core-modules/auth/dto/authorize-app.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql'; | ||
|
||
@ObjectType() | ||
export class AuthorizeApp { | ||
@Field(() => String) | ||
redirectUrl: string; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/twenty-server/src/engine/core-modules/auth/dto/authorize-app.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Field, ArgsType } from '@nestjs/graphql'; | ||
|
||
@ArgsType() | ||
export class AuthorizeAppInput { | ||
@Field(() => String) | ||
clientId: string; | ||
|
||
@Field(() => String) | ||
codeChallenge: string; | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/twenty-server/src/engine/core-modules/auth/dto/exchange-auth-code.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql'; | ||
|
||
import { AuthToken } from 'src/engine/core-modules/auth/dto/token.entity'; | ||
|
||
@ObjectType() | ||
export class ExchangeAuthCode { | ||
@Field(() => AuthToken) | ||
accessToken: AuthToken; | ||
|
||
@Field(() => AuthToken) | ||
refreshToken: AuthToken; | ||
|
||
@Field(() => AuthToken) | ||
loginToken: AuthToken; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/twenty-server/src/engine/core-modules/auth/dto/exchange-auth-code.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ArgsType, Field } from '@nestjs/graphql'; | ||
|
||
@ArgsType() | ||
export class ExchangeAuthCodeInput { | ||
@Field(() => String) | ||
authorizationCode: string; | ||
|
||
@Field(() => String) | ||
codeVerifier: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters