Skip to content

Commit

Permalink
Initial Commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Jan 31, 2024
0 parents commit 207cb48
Show file tree
Hide file tree
Showing 185 changed files with 37,572 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Displays in the badge in Readme.md
name: Latest SDK Build

on:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- main
- 'release/**'

env:
CARGO_TERM_COLOR: always

jobs:
rust:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Build
run: |
export VERSION=`echo $GITHUB_REF | sed -e "s/refs\/heads\///g" -e "s/release\///g"`
sed -i "s/0.0.0/${VERSION}/g" src/version.go
make install
make test
- name: Create Github Release and Tag
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.event_name == 'push'
run: |
branchId="${GITHUB_REF/refs\/heads\/release\//}"
export VERSION="v${branchId}.${GITHUB_RUN_NUMBER}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo Building version: ${{ env.VERSION }}
# We need to commit the changes in the version to the version.go or else the published version won't contain this change.
git commit -m"Creating version ${VERSION}"
git tag $VERSION
git push origin $VERSION
# Force the GOPROXY to update the cache
GOPROXY=proxy.golang.org go list -m authress/authress-sdk.go@${VERSION}
# - name: Publish SDK
# if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.event_name == 'push'
# run:
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
179 changes: 179 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
api_access_records.go
api_accounts.go
api_applications.go
api_connections.go
api_extensions.go
api_groups.go
api_invites.go
api_resource_permissions.go
api_roles.go
api_service_clients.go
api_tenants.go
api_user_permissions.go
api_users.go
client.go
configuration.go
docs/AccessRecord.md
docs/AccessRecordAccount.md
docs/AccessRecordCollection.md
docs/AccessRecordsAPI.md
docs/AccessRequest.md
docs/AccessRequestCollection.md
docs/AccessRequestResponse.md
docs/AccessTemplate.md
docs/Account.md
docs/AccountCollection.md
docs/AccountLinks.md
docs/AccountsAPI.md
docs/ApplicationDelegation.md
docs/ApplicationsAPI.md
docs/ClaimRequest.md
docs/Client.md
docs/ClientAccessKey.md
docs/ClientCollection.md
docs/ClientOptions.md
docs/CollectionLinks.md
docs/Connection.md
docs/ConnectionCollection.md
docs/ConnectionData.md
docs/ConnectionDefaultConnectionProperties.md
docs/ConnectionUserDataConfiguration.md
docs/ConnectionsAPI.md
docs/Extension.md
docs/ExtensionApplication.md
docs/ExtensionClient.md
docs/ExtensionCollection.md
docs/ExtensionsAPI.md
docs/Group.md
docs/GroupCollection.md
docs/GroupsAPI.md
docs/Identity.md
docs/IdentityCollection.md
docs/IdentityRequest.md
docs/Invite.md
docs/InvitesAPI.md
docs/Link.md
docs/LinkedGroup.md
docs/Links.md
docs/OAuthAuthorizeResponse.md
docs/OAuthTokenRequest.md
docs/OAuthTokenResponse.md
docs/Pagination.md
docs/PaginationNext.md
docs/PermissionCollection.md
docs/PermissionCollectionAccount.md
docs/PermissionObject.md
docs/PermissionedResource.md
docs/PermissionedResourceCollection.md
docs/Resource.md
docs/ResourcePermission.md
docs/ResourcePermissionsAPI.md
docs/ResourceUsersCollection.md
docs/Role.md
docs/RoleCollection.md
docs/RolesAPI.md
docs/ServiceClientsAPI.md
docs/Statement.md
docs/Tenant.md
docs/TenantCollection.md
docs/TenantConnection.md
docs/TenantData.md
docs/TenantsAPI.md
docs/TokenRequest.md
docs/User.md
docs/UserConnectionCredentials.md
docs/UserIdentity.md
docs/UserIdentityCollection.md
docs/UserPermissionsAPI.md
docs/UserResourcesCollection.md
docs/UserRole.md
docs/UserRoleCollection.md
docs/UserToken.md
docs/UsersAPI.md
git_push.sh
go.mod
go.sum
model_access_record.go
model_access_record_account.go
model_access_record_collection.go
model_access_request.go
model_access_request_collection.go
model_access_request_response.go
model_access_template.go
model_account.go
model_account_collection.go
model_account_links.go
model_application_delegation.go
model_claim_request.go
model_client.go
model_client_access_key.go
model_client_collection.go
model_client_options.go
model_collection_links.go
model_connection.go
model_connection_collection.go
model_connection_data.go
model_connection_default_connection_properties.go
model_connection_user_data_configuration.go
model_extension.go
model_extension_application.go
model_extension_client.go
model_extension_collection.go
model_group.go
model_group_collection.go
model_identity.go
model_identity_collection.go
model_identity_request.go
model_invite.go
model_link.go
model_linked_group.go
model_links.go
model_o_auth_authorize_response.go
model_o_auth_token_request.go
model_o_auth_token_response.go
model_pagination.go
model_pagination_next.go
model_permission_collection.go
model_permission_collection_account.go
model_permission_object.go
model_permissioned_resource.go
model_permissioned_resource_collection.go
model_resource.go
model_resource_permission.go
model_resource_users_collection.go
model_role.go
model_role_collection.go
model_statement.go
model_tenant.go
model_tenant_collection.go
model_tenant_connection.go
model_tenant_data.go
model_token_request.go
model_user.go
model_user_connection_credentials.go
model_user_identity.go
model_user_identity_collection.go
model_user_resources_collection.go
model_user_role.go
model_user_role_collection.go
model_user_token.go
response.go
test/api_access_records_test.go
test/api_accounts_test.go
test/api_applications_test.go
test/api_connections_test.go
test/api_extensions_test.go
test/api_groups_test.go
test/api_invites_test.go
test/api_resource_permissions_test.go
test/api_roles_test.go
test/api_service_clients_test.go
test/api_tenants_test.go
test/api_user_permissions_test.go
test/api_users_test.go
utils.go
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.3.0-SNAPSHOT
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"cSpell.words": [
"chrono",
"permissioned",
"reqwest",
"urlencode"
]
}
Loading

0 comments on commit 207cb48

Please sign in to comment.