Start OAuth authorization flow
Initiates the OAuth 2.1 authorization code flow and redirects to the Nomadfiling authorization UI with the incoming parameters forwarded.
curl -X GET "https://api.example.com/mcp-server/authorize?client_id=example_string&redirect_uri=example_string&response_type=code&state=example_string&code_challenge=example_string&code_challenge_method=S256&scope=mcp" \
-H "Content-Type: application/json"
import requests
import json
url = "https://api.example.com/mcp-server/authorize?client_id=example_string&redirect_uri=example_string&response_type=code&state=example_string&code_challenge=example_string&code_challenge_method=S256&scope=mcp"
headers = {
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.example.com/mcp-server/authorize?client_id=example_string&redirect_uri=example_string&response_type=code&state=example_string&code_challenge=example_string&code_challenge_method=S256&scope=mcp", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.example.com/mcp-server/authorize?client_id=example_string&redirect_uri=example_string&response_type=code&state=example_string&code_challenge=example_string&code_challenge_method=S256&scope=mcp", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.example.com/mcp-server/authorize?client_id=example_string&redirect_uri=example_string&response_type=code&state=example_string&code_challenge=example_string&code_challenge_method=S256&scope=mcp')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
response = http.request(request)
puts response.body
{}
{
"error": "invalid_request",
"error_description": "Required authorization parameters are missing."
}
{
"error": "invalid_client",
"error_description": "The specified client_id is invalid."
}
{
"error": "invalid_redirect_uri",
"error_description": "The redirect_uri does not match the registered client."
}
/authorize
Target server for requests. Edit to use your own host.
Registered OAuth client identifier.
Redirect URI registered for the client.
OAuth response type. Must be code.
Opaque client state value returned on redirect.
PKCE code challenge value.
PKCE transformation method. Defaults to plain.
Requested OAuth scope. Defaults to mcp.
Request Preview
Response
Response will appear here after sending the request
Query Parameters
Registered OAuth client identifier.
Redirect URI registered for the client.
Opaque client state value returned on redirect.
PKCE code challenge value.