Skip to content

Commit 207cb48

Browse files
committed
Initial Commit.
0 parents  commit 207cb48

File tree

185 files changed

+37572
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+37572
-0
lines changed

.github/workflows/build.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Displays in the badge in Readme.md
2+
name: Latest SDK Build
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- 'release/**'
9+
pull_request:
10+
branches:
11+
- main
12+
- 'release/**'
13+
14+
env:
15+
CARGO_TERM_COLOR: always
16+
17+
jobs:
18+
rust:
19+
name: Build
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Go
25+
uses: actions/setup-go@v3
26+
with:
27+
go-version: 1.18
28+
29+
- name: Build
30+
run: |
31+
export VERSION=`echo $GITHUB_REF | sed -e "s/refs\/heads\///g" -e "s/release\///g"`
32+
sed -i "s/0.0.0/${VERSION}/g" src/version.go
33+
make install
34+
make test
35+
36+
- name: Create Github Release and Tag
37+
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.event_name == 'push'
38+
run: |
39+
branchId="${GITHUB_REF/refs\/heads\/release\//}"
40+
export VERSION="v${branchId}.${GITHUB_RUN_NUMBER}"
41+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
42+
echo Building version: ${{ env.VERSION }}
43+
44+
# We need to commit the changes in the version to the version.go or else the published version won't contain this change.
45+
git commit -m"Creating version ${VERSION}"
46+
git tag $VERSION
47+
git push origin $VERSION
48+
49+
# Force the GOPROXY to update the cache
50+
GOPROXY=proxy.golang.org go list -m authress/authress-sdk.go@${VERSION}
51+
52+
# - name: Publish SDK
53+
# if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.event_name == 'push'
54+
# run:

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof

.openapi-generator-ignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

+179
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
.gitignore
2+
.openapi-generator-ignore
3+
.travis.yml
4+
README.md
5+
api/openapi.yaml
6+
api_access_records.go
7+
api_accounts.go
8+
api_applications.go
9+
api_connections.go
10+
api_extensions.go
11+
api_groups.go
12+
api_invites.go
13+
api_resource_permissions.go
14+
api_roles.go
15+
api_service_clients.go
16+
api_tenants.go
17+
api_user_permissions.go
18+
api_users.go
19+
client.go
20+
configuration.go
21+
docs/AccessRecord.md
22+
docs/AccessRecordAccount.md
23+
docs/AccessRecordCollection.md
24+
docs/AccessRecordsAPI.md
25+
docs/AccessRequest.md
26+
docs/AccessRequestCollection.md
27+
docs/AccessRequestResponse.md
28+
docs/AccessTemplate.md
29+
docs/Account.md
30+
docs/AccountCollection.md
31+
docs/AccountLinks.md
32+
docs/AccountsAPI.md
33+
docs/ApplicationDelegation.md
34+
docs/ApplicationsAPI.md
35+
docs/ClaimRequest.md
36+
docs/Client.md
37+
docs/ClientAccessKey.md
38+
docs/ClientCollection.md
39+
docs/ClientOptions.md
40+
docs/CollectionLinks.md
41+
docs/Connection.md
42+
docs/ConnectionCollection.md
43+
docs/ConnectionData.md
44+
docs/ConnectionDefaultConnectionProperties.md
45+
docs/ConnectionUserDataConfiguration.md
46+
docs/ConnectionsAPI.md
47+
docs/Extension.md
48+
docs/ExtensionApplication.md
49+
docs/ExtensionClient.md
50+
docs/ExtensionCollection.md
51+
docs/ExtensionsAPI.md
52+
docs/Group.md
53+
docs/GroupCollection.md
54+
docs/GroupsAPI.md
55+
docs/Identity.md
56+
docs/IdentityCollection.md
57+
docs/IdentityRequest.md
58+
docs/Invite.md
59+
docs/InvitesAPI.md
60+
docs/Link.md
61+
docs/LinkedGroup.md
62+
docs/Links.md
63+
docs/OAuthAuthorizeResponse.md
64+
docs/OAuthTokenRequest.md
65+
docs/OAuthTokenResponse.md
66+
docs/Pagination.md
67+
docs/PaginationNext.md
68+
docs/PermissionCollection.md
69+
docs/PermissionCollectionAccount.md
70+
docs/PermissionObject.md
71+
docs/PermissionedResource.md
72+
docs/PermissionedResourceCollection.md
73+
docs/Resource.md
74+
docs/ResourcePermission.md
75+
docs/ResourcePermissionsAPI.md
76+
docs/ResourceUsersCollection.md
77+
docs/Role.md
78+
docs/RoleCollection.md
79+
docs/RolesAPI.md
80+
docs/ServiceClientsAPI.md
81+
docs/Statement.md
82+
docs/Tenant.md
83+
docs/TenantCollection.md
84+
docs/TenantConnection.md
85+
docs/TenantData.md
86+
docs/TenantsAPI.md
87+
docs/TokenRequest.md
88+
docs/User.md
89+
docs/UserConnectionCredentials.md
90+
docs/UserIdentity.md
91+
docs/UserIdentityCollection.md
92+
docs/UserPermissionsAPI.md
93+
docs/UserResourcesCollection.md
94+
docs/UserRole.md
95+
docs/UserRoleCollection.md
96+
docs/UserToken.md
97+
docs/UsersAPI.md
98+
git_push.sh
99+
go.mod
100+
go.sum
101+
model_access_record.go
102+
model_access_record_account.go
103+
model_access_record_collection.go
104+
model_access_request.go
105+
model_access_request_collection.go
106+
model_access_request_response.go
107+
model_access_template.go
108+
model_account.go
109+
model_account_collection.go
110+
model_account_links.go
111+
model_application_delegation.go
112+
model_claim_request.go
113+
model_client.go
114+
model_client_access_key.go
115+
model_client_collection.go
116+
model_client_options.go
117+
model_collection_links.go
118+
model_connection.go
119+
model_connection_collection.go
120+
model_connection_data.go
121+
model_connection_default_connection_properties.go
122+
model_connection_user_data_configuration.go
123+
model_extension.go
124+
model_extension_application.go
125+
model_extension_client.go
126+
model_extension_collection.go
127+
model_group.go
128+
model_group_collection.go
129+
model_identity.go
130+
model_identity_collection.go
131+
model_identity_request.go
132+
model_invite.go
133+
model_link.go
134+
model_linked_group.go
135+
model_links.go
136+
model_o_auth_authorize_response.go
137+
model_o_auth_token_request.go
138+
model_o_auth_token_response.go
139+
model_pagination.go
140+
model_pagination_next.go
141+
model_permission_collection.go
142+
model_permission_collection_account.go
143+
model_permission_object.go
144+
model_permissioned_resource.go
145+
model_permissioned_resource_collection.go
146+
model_resource.go
147+
model_resource_permission.go
148+
model_resource_users_collection.go
149+
model_role.go
150+
model_role_collection.go
151+
model_statement.go
152+
model_tenant.go
153+
model_tenant_collection.go
154+
model_tenant_connection.go
155+
model_tenant_data.go
156+
model_token_request.go
157+
model_user.go
158+
model_user_connection_credentials.go
159+
model_user_identity.go
160+
model_user_identity_collection.go
161+
model_user_resources_collection.go
162+
model_user_role.go
163+
model_user_role_collection.go
164+
model_user_token.go
165+
response.go
166+
test/api_access_records_test.go
167+
test/api_accounts_test.go
168+
test/api_applications_test.go
169+
test/api_connections_test.go
170+
test/api_extensions_test.go
171+
test/api_groups_test.go
172+
test/api_invites_test.go
173+
test/api_resource_permissions_test.go
174+
test/api_roles_test.go
175+
test/api_service_clients_test.go
176+
test/api_tenants_test.go
177+
test/api_user_permissions_test.go
178+
test/api_users_test.go
179+
utils.go

.openapi-generator/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.3.0-SNAPSHOT

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"cSpell.words": [
3+
"chrono",
4+
"permissioned",
5+
"reqwest",
6+
"urlencode"
7+
]
8+
}

0 commit comments

Comments
 (0)