-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhelp.php
executable file
·142 lines (141 loc) · 5.53 KB
/
help.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
require_once('config.inc.php');
require_once('secure.inc.php');
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<?php require('head.php') ?>
<title>Manual | QuickAuth</title>
</head>
<body>
<div class="wrapper">
<?php require('header.php'); ?>
<?php require('modals.php'); ?>
<div class="container">
<div class="row">
<div class="col-sm-4 col-md-3 hidden-xs">
<div id="help-nav" class="panel panel-default">
<div class="panel-heading">Documents</div>
<ul class="nav nav-pills nav-stacked panel-body">
<li role="presentation">
<a href="#qid-1">What is QuickAuth</a>
</li>
<li role="presentation">
<a href="#qid-2">How to use (user)</a>
</li>
<li role="presentation">
<a href="#qid-3">How to use (developer)</a>
</li>
<li role="presentation">
<a href="#qid-4">Why choose QuickAuth</a>
</li>
<li role="presentation">
<a href="#qid-5">Information accessed</a>
</li>
<li role="presentation">
<a href="#qid-6">Process of auth</a>
</li>
<li role="presentation">
<a href="#qid-7">How long will auth be valid</a>
</li>
<li role="presentation">
<a href="#qid-8">Relation with OAuth</a>
</li>
<li role="presentation">
<a href="#qid-9">Unable to deliver email</a>
</li>
<li role="presentation">
<a href="#qid-999">Feedback</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-8 col-md-8 col-md-offset-1 ">
<div id="qid-1" class="panel panel-default">
<div class="panel-heading">What is QuickAuth</div>
<div class="panel-body">
<p><a href="<?= BASE_URL ?>">QuickAuth</a> is an open-source user system which supports OAuth.
By using QuickAuth, you can log in to some websites without sign up for another account,
which most likely will be used only once. Frankly speaking, only my websites would use this
platform.(hahah)</p>
</div>
</div>
<div id="qid-2" class="panel panel-default">
<div class="panel-heading">How to use QuickAuth (As a user)</div>
<div class="panel-body">
<p>As a user: All you need to do is when the websites you visit redirect you here, fill in your
username and password, hit the button. Done!</p>
</div>
</div>
<div id="qid-3" class="panel panel-default">
<div class="panel-heading">How to use QuickAuth (As a developer)</div>
<div class="panel-body">
<p>Here is a <a href="http://demo.newnius.com/quickauthdemo/demo.php" target="_blank">demo</a>,
help yourself.</p>
</div>
</div>
<div id="qid-4" class="panel panel-default">
<div class="panel-heading">Why will I use QuickAuth</div>
<div class="panel-body">
<p>You don't have to own a Google account, but when you access some Google products, you need
one, right?</p>
</div>
</div>
<div id="qid-5" class="panel panel-default">
<div class="panel-heading">What kind of information can be accessed</div>
<div class="panel-body">
<p>In short,information such as username, email, verified or not, and some personal
information(granted by the user) can be accessed.</p>
</div>
</div>
<div id="qid-6" class="panel panel-default">
<div class="panel-heading">I am a developer, how to guarantee the auth</div>
<div class="panel-body">
<p>The process of auth is:<br/>1. Client redirect user to QuickAuth, attaching your redirect uri<br/>2.
User sign on to finish grant<br/>3. Redirect to uri requested, attaching auth code and state<br/>4.
Client sending auth code and others values to QuickAuth in the backend<br/>5. QuickAuth
response information in json for success, or error info in json for invalid auth key<br/>Note:
It is a standard <abbr title="An open protocol to allow secure authorization">OAuth</abbr>
progress.</p>
</div>
</div>
<div id="qid-7" class="panel panel-default">
<div class="panel-heading">How long will the auth be valid</div>
<div class="panel-body">
<p>The access token is valid for 30 days, but it is recommended to refresh token timely in case
user revokes.</p>
</div>
</div>
<div id="qid-8" class="panel panel-default">
<div class="panel-heading">What is the relationship between this and OAuth</div>
<div class="panel-body">
<p>We try our best to make this a standard implementation of OAuth.</p>
</div>
</div>
<div id="qid-9" class="panel panel-default">
<div class="panel-heading">Why it says unable to deliver email to my email address</div>
<div class="panel-body">
<p>Possible reasons<br/>1. Email address not exist.<br/>2. Your email address provider refused
that email.<br/>3. Our email service provider is busy now, please try again later.<br/>4. In
order to avoid abuse, maximum request exceeded from your request, please try another
day.<br/>5. If neither of them can solve your problem, please contact us.</p>
</div>
</div>
<div id="qid-999" class="panel panel-default">
<div class="panel-heading">More</div>
<div class="panel-body">
<p>This document has not been completed. If you have any problem, please contact me at
<a href="mailto:<?= FEEDBACK_EMAIL ?>?subject=From QA"><?= FEEDBACK_EMAIL ?></a>
</p>
</div>
</div>
</div>
</div>
</div> <!-- /container -->
<!--This div exists to avoid footer from covering main body-->
<div class="push"></div>
</div>
<?php require('footer.php'); ?>
</body>
</html>