Signonify Mini Apps
  1. Authenticate (OAuth2)
Signonify Mini Apps
  • Getting Started
  • Authenticate (OAuth2)
    • /oauth/authorize
      GET
    • /oauth/token
      POST
    • /oauth/userinfo
      GET
  1. Authenticate (OAuth2)

/oauth/authorize

GET
/oauth/authorize
oauth2
To 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

🟢200OK
text/html
Body
code
integer 
required
status code
>= 0<= 0
data
object (Pet) 
required
pet details
id
integer <int64>
required
Pet ID
>= 1
category
object (Category) 
required
group
name
string 
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}] 
required
tag
status
enum<string> 
required
Pet Sales Status
Allowed values:
availablependingsold
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>
🔵302Redirect
Modified at 2024-09-04 08:25:40
Previous
Getting Started
Next
/oauth/token
Built with