Authentication
Validates the provided access token and optional refresh token
The access token for authentication
eyJhbGciOiJIUzI1NilsImtpZCI6IlRbEty...
Optional refresh token
Authentication successful
Unauthorized - No access token provided or invalid token
Internal server error
POST /sfp/api/auth/callback HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"access_token": "eyJhbGciOiJIUzI1NilsImtpZCI6IlRbEty...",
"refresh_token": "text"
}
{
"success": true,
"data": {
"userId": "123"
}
}
Authenticates an admin user with email and password credentials
Password for the admin user
password123
Authentication successful
Unauthorized - Invalid credentials or insufficient permissions
Too Many Requests - Rate limit exceeded
Internal server error
POST /sfp/api/auth/admin/login HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"email": "[email protected]",
"password": "password123"
}
{
"success": true,
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "123",
"email": "[email protected]",
"role": "owner"
},
"error": "Invalid credentials"
}
Renders a dynamic login page. If the user is already authenticated, proceeds directly to the requested action with provided parameters. Used as an entry point for browser-based, context-aware authentication and routing.
The action to continue to after login (e.g., frontdoorUrl)
Comma-separated key:value pairs for action context. For frontDoorUrl action: targetOrg:myorg (required), repository:org/repo (optional), prodOrg:[email protected] (optional)
HTML page for login and continuation.
GET /sfp/api/auth/continue?action=text¶ms=text HTTP/1.1
Host:
Accept: */*
HTML page for login and continuation.
No content
Was this helpful?