Starts a login: mints `state`/`nonce`/a PKCE verifier, remembers them in
GET
/auth/login
curl --request GET \ --url http://localhost:3001/auth/login \ --header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/auth/login"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.status_code)use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/auth/login";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let status = response.unwrap().status();
dbg!(status);}The flow cookie, and sends the browser to the provider. Cannot fail —
there is no user input yet and no network call, only local randomness —
so this returns a bare Response, not a Result.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”return_to
required
string
Responses
Section titled “Responses”Redirects to the identity provider’s authorization endpoint