Spaces:
Build error
Build error
File size: 1,109 Bytes
def1299 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# Group Authorization
To issue some API calls you need to be authorized. For example, you need to be authorized to
[list all submissions](#submissions-submission-get-1) on Judge0.
## Authorize [/authorize{?X-Auth-User}]
### Authorize [POST]
With this API call you can check if your authorization token is valid. If authentication is enabled you should also
authenticate in this API call.
::: note
<h4>Note</h4>
* `X-Auth-User` is default header field name, but administrators of Judge0 instance you are using
can change this default field name.
* Contact administrator of Judge0 instance you are using to get your authorization token.
:::
::: warning
<h4>Security Warning</h4>
* Although you can send authorization token as URI parameter, **always** send authorization token through headers.
:::
+ Request
+ Headers
```
X-Auth-User: a1133bc6-a0f6-46bf-a2d8-6157418c6fe2
```
+ Response 200
If your authorization token is valid.
+ Body
<!-- include(../_unauthenticated.md) -->
+ Response 403
Authorization failed because your authorization token is invalid.
+ Body |