Skip to content

Commit 47c7c64

Browse files
committed
initial
1 parent 2cbd33b commit 47c7c64

19 files changed

+269
-346
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nbproject/private/

LICENSE

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
The MIT License
2+
3+
Copyright (c) 2019 Ulbora Labs LLC
4+
Copyright (c) 2019 Ken Williamson
5+
6+
7+
8+
Permission is hereby granted, free of charge, to any person obtaining
9+
a copy of this software and associated documentation files (the
10+
'Software'), to deal in the Software without restriction, including
11+
without limitation the rights to use, copy, modify, merge, publish,
12+
distribute, sublicense, and/or sell copies of the Software, and to
13+
permit persons to whom the Software is furnished to do so, subject to
14+
the following conditions:
15+
16+
The above copyright notice and this permission notice shall be
17+
included in all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
20+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

coverage.out

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mode: set

database/oauth2/mysql/mysql.go

-70
This file was deleted.

database/oauth2/mysql/mysql_test.go

-69
This file was deleted.

database/oauth2/mysql/queries.go

-9
This file was deleted.

domain/client.go

-13
This file was deleted.

nbproject/project.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
auxiliary.org-netbeans-modules-javascript-nodejs.enabled=true
2+
files.encoding=UTF-8
3+
source.folder=

nbproject/project.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.web.clientproject</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/clientside-project/1">
6+
<name>oauth2server</name>
7+
</data>
8+
</configuration>
9+
</project>

oauth2server.go

-24
This file was deleted.

oauth2server_test.go

-15
This file was deleted.

scripts/mysql/database-insert.sql

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
use ulbora_oauth2_server;
2+
insert into client(email, enabled, name, secret, web_site)
3+
values('[email protected]', 1, 'Ulbora Labs', '554444vfg55ggfff22454sw2fff2dsfd', 'www.ulboralabs.com');
4+
5+
6+
insert into client_allowed_uri(client_id, uri)
7+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClient');
8+
9+
insert into client_allowed_uri(client_id, uri)
10+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/updateClient');
11+
12+
insert into client_allowed_uri(client_id, uri)
13+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClient');
14+
15+
insert into client_allowed_uri(client_id, uri)
16+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientList');
17+
18+
insert into client_allowed_uri(client_id, uri)
19+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClient');
20+
21+
insert into client_allowed_uri(client_id, uri)
22+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientAllowedUri');
23+
24+
insert into client_allowed_uri(client_id, uri)
25+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientAllowedUriList');
26+
27+
insert into client_allowed_uri(client_id, uri)
28+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientAllowedUri');
29+
30+
insert into client_allowed_uri(client_id, uri)
31+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientRedirectUri');
32+
33+
insert into client_allowed_uri(client_id, uri)
34+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientRedirectUriList');
35+
36+
insert into client_allowed_uri(client_id, uri)
37+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientRedirectUri');
38+
39+
insert into client_allowed_uri(client_id, uri)
40+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteAllClientRedirectUri');
41+
42+
insert into client_allowed_uri(client_id, uri)
43+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientRole');
44+
45+
insert into client_allowed_uri(client_id, uri)
46+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientRoleList');
47+
48+
insert into client_allowed_uri(client_id, uri)
49+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientRole');
50+
51+
insert into client_allowed_uri(client_id, uri)
52+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientScope');
53+
54+
insert into client_allowed_uri(client_id, uri)
55+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientScopeList');
56+
57+
insert into client_allowed_uri(client_id, uri)
58+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientScope');
59+
60+
insert into client_allowed_uri(client_id, uri)
61+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientRoleUri');
62+
63+
insert into client_allowed_uri(client_id, uri)
64+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientRoleAllowedUriList');
65+
66+
insert into client_allowed_uri(client_id, uri)
67+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientRoleUri');
68+
69+
insert into client_allowed_uri(client_id, uri)
70+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/addClientGrantType');
71+
72+
insert into client_allowed_uri(client_id, uri)
73+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/getClientGrantTypeList');
74+
75+
insert into client_allowed_uri(client_id, uri)
76+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientGrantType');
77+
78+
insert into client_allowed_uri(client_id, uri)
79+
values((select client_id from client where name = 'Ulbora Labs'), 'http:localhost:3000/rs/deleteClientGrantType');
80+
81+

0 commit comments

Comments
 (0)