Basic Login Endpoint Panel |
---|
borderColor | black |
---|
bgColor | #fafafb |
---|
| GET /aspire/_api/login/basic
|
RequestHTTP Headers parameters
Name | Type | Required | Description |
---|
Authorization | string | Required | Base64 encoded user:password |
Example To login with "user:pass" the Base64 would be dXNlcjpwYXNz Code Block |
---|
| GET /aspire/_api/login/basic
- Authorization: Basic dXNlcjpwYXNz
|
ResponseResponse Body Fields Name | Type | Description |
---|
accessToken | string | JWT access token | refreshToken | string | JWT refresh token | tokenType | string | Token type, always "bearer" | expiresIn | long | Expiration time in seconds for the access token |
Example: Code Block |
---|
| {
"accessToken": "eyJhb... | "eyJhbGciOiJIUzI1NiJ9.eyIkaW50X3Blcm1zIjpbXSwic3ViIjoib3JnLnBhYzRqLmNvcmUucHJvZmlsZS5Db21tb25Qcm9maWxlI2FuZHJlcyIsIiRpbnRfcm9sZXMiOlsiQURNSU5JU1RSQVRPUiJdLCJleHAiOjE2MDE1MDc2MjcsImlhdCI6MTYwMTUwNzMyN30.6cqm1bVk5itdbZHiaQjd7E4jIYRwZY4d_DPikxK1bEkeyJhbGciOiJIUzI1NiJ9eyIkaW50X3Blcm1zIjpbXSwic3ViIjoib3JnLnBhYzRqLmNvcmUucHJvZmlsZS5Db21tb25Qcm9maWxlI2FuZHJlcyIsInJlZnJlc2hLZXkiOiJsMjNHdVd0ZHI5UVFNWmlrQkRWaGxmN01WcVBqaTVuZUhBVUZ5WnZiZlF3OHZqMnR2bFhOTno5RWJPRTdmZTJjIiwiJGludF9yb2xlcyI6WyJBRE1JTklTVFJBVE9SIl0sImV4cCI6MTYwMTUwODIyNywiaWF0IjoxNjAxNTA3MzI3fQtH2Iq8KshxDCXc0AaS4LSTobvmla9xSKYKzUF0aaXUI",
"tokenType": "bearer",
"expiresIn": 300
} |
In case no authentication is configured, the following response will be returned
Code Block |
---|
| {
"message": "No authentication is configured"
} |
Status Response code | Description |
---|
200 | Success | 401 | Unauthorized, login failed |
A Cookie will also be returned to persist both the access and refresh tokens |