Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added flow for get oauth2-client api #692

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion flows/oauth2Flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,55 @@
scope : string
}
```
- Flow diagram: https://app.code2flow.com/flowcharts/6475a4953f4c2482c82a4352
- Flow diagram: https://app.code2flow.com/flowcharts/6475a4953f4c2482c82a4352


## 2. Get oauth2 client
- Path: "/appid-<appId>/recipe/oauth2/client/<clientId>"
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
- Method: GET
- Input Params:
- ```clientId=string```
- Output:
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this file and work only on the cdi spec

{
status: "OK",
name: string,
clientInfo :
{
clientId: string,
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
clientSecret: string,
scopes: string[],
timeCreated: number
}
redirectUris: string[],
timeUpdated: number,
authorizationCodes: [
{
tenantId: string,
sessionHandle: string,
scopes: string[],
accessType: string,
codeChallenge: string,
codeChallengeMethod: string,
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
redirectUri: string,
timeCreated: number,
timeExpires: number
}
],
issuedTokens: [
{
tenantId: string,
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
sessionHandle: string,
userId: string,
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
scopes: string[],
accessTokenHash: string,
refreshTokenHash: string,
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
timeCreated: number,
timeAccessTokenExpires: number,
timeRefreshTokenExpires: number
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved
}
]
}
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved

```
- Flow diagram: https://app.code2flow.com/flowcharts/6475cc5b3f4c2482c82a736a
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved