You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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)**\n\n## Response Body Example\n\n```json\n{\n\"user\": {\n\"email\": \"foo@bar.org\",\n\"name\": \"Foo Bar\",\n\"login\": \"foobar\",\n\"avatar\": \"https://avatars.githubusercontent.com/u/1234\",\n\"url\": null\n }\n}\n```",
1177
+
"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)**",
1178
1178
"operationId": "authorize_session",
1179
1179
"responses": {
1180
1180
"200": {
1181
+
"content": {
1182
+
"application/json": {
1183
+
"schema": {
1184
+
"properties": {
1185
+
"owned_crates": {
1186
+
"description": "The crates that the authenticated user owns.",
1187
+
"items": {
1188
+
"properties": {
1189
+
"email_notifications": {
1190
+
"deprecated": true,
1191
+
"type": "boolean"
1192
+
},
1193
+
"id": {
1194
+
"description": "The opaque identifier of the crate.",
"description": "This route will return an authorization URL for the GitHub OAuth flow including the crates.io\n`client_id` and a randomly generated `state` secret.\n\nsee <https://developer.github.com/v3/oauth/#redirect-users-to-request-github-access>\n\n## Response Body Example\n\n```json\n{\n\"state\": \"b84a63c4ea3fcb4ac84\",\n\"url\": \"https://github.com/login/oauth/authorize?client_id=...&state=...&scope=read%3Aorg\"\n}\n```",
1238
+
"description": "This route will return an authorization URL for the GitHub OAuth flow including the crates.io\n`client_id` and a randomly generated `state` secret.\n\nsee <https://developer.github.com/v3/oauth/#redirect-users-to-request-github-access>",
0 commit comments