curl --request GET \
--url https://accounts.eka.care/oauth2/authorizeimport requests
url = "https://accounts.eka.care/oauth2/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://accounts.eka.care/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://accounts.eka.care/oauth2/authorize")
.asString();using RestSharp;
var options = new RestClientOptions("https://accounts.eka.care/oauth2/authorize");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://accounts.eka.care/oauth2/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": "invalid_grant",
"error_description": "The provided authorization grant is invalid, expired, or already used."
}Authorize User
Starts the OAuth 2.0 Authorization Code flow.
Open this endpoint in the user’s browser. Eka authenticates the user when
required and redirects the browser to the registered redirect_uri.
A successful redirect contains a short-lived, single-use authorization
code that your backend exchanges at /oauth2/token.
Eka grants a fixed scope set on this endpoint. Include it as the OAuth
scope query parameter:
openid profile email offline_access.
PKCE is optional. When using PKCE, use the S256 challenge method and
generate a new verifier for every authorization request.
curl --request GET \
--url https://accounts.eka.care/oauth2/authorizeimport requests
url = "https://accounts.eka.care/oauth2/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://accounts.eka.care/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://accounts.eka.care/oauth2/authorize")
.asString();using RestSharp;
var options = new RestClientOptions("https://accounts.eka.care/oauth2/authorize");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://accounts.eka.care/oauth2/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": "invalid_grant",
"error_description": "The provided authorization grant is invalid, expired, or already used."
}code_challenge_method=S256 and generate a new verifier for every authorization request.
After authentication, Eka redirects the browser to your registered redirect_uri with a
single-use authorization code.
Your client application should verify state before exchanging the code. If your authorization
request includes a nonce, your client should verify it when validating the returned ID token.
scope query parameter:
openid profile email offline_access.Query Parameters
Response
The browser is redirected to redirect_uri. On success, the query
contains code, state, and the granted scope. On an OAuth error,
it contains error, error_description, and state.
Was this page helpful?

