-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·72 lines (71 loc) · 2.07 KB
/
Copy pathconfig.php
File metadata and controls
executable file
·72 lines (71 loc) · 2.07 KB
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
<?php
Config::set(
'oauth',
[
'active' => true,
'path' => 'modules',
'topmenu' => false,
'dependencies' => [
'aws/aws-sdk-php' => '^3.55'
],
'hooks' => [
'auth',
'tokens',
'oauth'
],
'apps' => [
'cognito' => [
// 'client_id#1' => [
// 'client_secret' => "abcdeXYZ123",
// 'title' => "MyAppIsCalled",
// 'domain' => "2pi-something.somewhere.auth.ap-southeast-2.amazoncognito.com",
// 'scope' => "asSetForApp",
// 'callback' => "https://pi-HostingSomething.somewhere/oauth/flowsubmit",
// 'login' => true/false if avails user to FORCE_LOGIN (cmfive),
// 'redirect' => final landing page (as opposed to 'flowsubmit' JSON or splashpageTemplate),
// 'splashpage' => "TemplateTitle" (module:oauth, category:splashpage)
// ],
// 'client_id#2' => [
// 'client_secret' => "abcdeXYZ123",
// 'title' => "MyOtherAppIsCalled",
// 'domain' => "2pi-something.somewhere.auth.ap-southeast-2.amazoncognito.com",
// 'scope' => "asSetForApp2",
// 'callback' => "https://pi-HostingSomething.somewhere/oauth/flowsubmit",
// 'login' => true/false if avails user to FORCE_LOGIN (cmfive),
// 'redirect' => final landing page (as opposed to 'flowsubmit' JSON or splashpageTemplate),
// 'splashpage' => "IgnoreIfYouJustWantJsonReturn" (module:oauth, category:splashpage)
// ],
],
]
]
);
/*
/////////
// example: 'splashpage' => "Prover" -> templates -> oauth -> splashpage
// A simple splash coordinating Cognito biased returns
/////////
<div>
<br><br>
<h2 align="center">
API application:
</h2>
<h1 align="center">
{{app["title"]}}
</h1>
<h2 align="center">
Grants access for:
</h2>
<h1 align="center">
{{bearer}}
</h1>
<h2 align="center">
Token is:
</h2>
<div style="padding: 0 20% 0 20%;">
<code style="display: block;overflow-wrap: break-word;text-align: left;">
{{flow["access_token"]}}
</code>
</div>
<br>
</div>
*/