/oauth/authorize
GET
/oauth/authorizeTo authenticate with OAuth2.0 method, copy the path of this API to the browser and add the necessary parameters.
Request
Query Params
client_id
string
required
Client ID of your Signonify Mini App
Example:
d1e23a933f0fe6db11dd403d0ff948cf
redirect_uri
string
required
The redirection URI to which the response will be sent MUST exactly match one of the whitelisted (allowed redirection URLs) values pre-registered for the Mini App.
Example:
https://example.com
response_type
enum<string>
optional
Only one value is allowed is: code
Allowed value:
code
Example:
code
scope
enum<string>
optional
Allowed value:
basic
Example:
basic
state
string
optional
This is optional value
Example:
642e031f42a85
Responses
OK(200)
Redirect(302)
HTTP Code: 200
Content Type : HTMLtext/html
Example
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
</head>
<body class="p-5 bg-body-tertiary">
<main class="form-signin w-50 mx-auto">
<div class="card shadow-md">
<div class="card-body">
<h3>Auth</h3>
<div class="mb-4">Your account: <strong>demo@demo.com</strong> <a href="./logout.php">Logout</a></div>
<!-- Login Form -->
<form method="POST">
<label class="mb-3 d-block"><strong>Signonify.com</strong> want to connect to your account.</label>
<div class="mb-4 text-center">
<input type="submit" name="allow" class="btn btn-primary" value="Authorize Application">
<input type="button" name="deny" class="btn btn-danger" value="Deny">
</div>
</form>
<div class="mt-3"><small><a href="#">Cancel and go back the website</a></small></div>
</div>
</div>
</main>
</body>
</html>
Last modified: 2 months ago