Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/controllers/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ pub struct AuthorizeQuery {
///
/// ## Query Parameters
///
/// - `code` temporary code received from the GitHub API **(Required)**
/// - `state` state parameter received from the GitHub API **(Required)**
/// - `code` - temporary code received from the GitHub API **(Required)**
/// - `state` - state parameter received from the GitHub API **(Required)**
#[utoipa::path(
get,
path = "/api/private/session/authorize",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ expression: response.json()
},
"/api/private/session/authorize": {
"get": {
"description": "This route is called from the GitHub API OAuth flow after the user accepted or rejected\nthe data access permissions. It will check the `state` parameter and then call the GitHub API\nto exchange the temporary `code` for an API token. The API token is returned together with\nthe corresponding user information.\n\nsee <https://developer.github.com/v3/oauth/#github-redirects-back-to-your-site>\n\n## Query Parameters\n\n- `code` temporary code received from the GitHub API **(Required)**\n- `state` state parameter received from the GitHub API **(Required)**",
"description": "This route is called from the GitHub API OAuth flow after the user accepted or rejected\nthe data access permissions. It will check the `state` parameter and then call the GitHub API\nto exchange the temporary `code` for an API token. The API token is returned together with\nthe corresponding user information.\n\nsee <https://developer.github.com/v3/oauth/#github-redirects-back-to-your-site>\n\n## Query Parameters\n\n- `code` - temporary code received from the GitHub API **(Required)**\n- `state` - state parameter received from the GitHub API **(Required)**",
"operationId": "authorize_session",
"responses": {
"200": {
Expand Down