Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

into main #861

Merged
merged 73 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7a1ea93
docs(website): wip about mode
nonoakij May 14, 2024
8ac9a2c
feat: add mode prop to determine how to opening the OAuth endpoint ✨
ejithon May 14, 2024
de42822
chore: add changeset ♻️
ejithon May 14, 2024
716cdb4
Update packages/website/docs/04-Advanced-Guides/authentication.md
nonoakij May 15, 2024
e333e17
Update packages/website/docs/04-Advanced-Guides/authentication.md
nonoakij May 21, 2024
4cc7cab
Merge branch 'develop' of https://github.com/cam-inc/viron into docs-…
nonoakij May 21, 2024
4a4af7a
Merge branch 'docs-3pcd' of https://github.com/cam-inc/viron into doc…
nonoakij May 21, 2024
40c6a0e
intent(website): add change set
nonoakij May 21, 2024
ecad4d8
Merge pull request #829 from cam-inc/docs-3pcd
nonoakij May 21, 2024
28eb193
Merge pull request #830 from cam-inc/support-mode-type
nonoakij May 21, 2024
3038c3a
feat(linter): upgrade golang version to 1.22.3
takoring May 27, 2024
f31fd96
Merge pull request #836 from cam-inc/feat/golang_version_up_1_22_3
nonoakij May 28, 2024
c74f9ee
fix: loadPolicy fails if casbin data contains a comma
takoring Jun 10, 2024
65b3723
fix: err type 500->400
takoring Jun 10, 2024
9f58fd6
Merge pull request #845 from cam-inc/fix/casbin_data_contains_comma
takoring Jun 10, 2024
aef392d
update: mongo-driver
KenFujimoto12 Nov 20, 2024
002919c
Merge pull request #848 from cam-inc/feat/update-gomod
takoring Nov 28, 2024
7c84df0
feat(nodejs): auth oidc
takoring Jan 10, 2025
13d9865
fix(nodejs): provisional implementation up to OIDC authentication
takoring Jan 14, 2025
2c8ef26
fix(nodejs): provisional implementation up to OIDC authentication
takoring Jan 14, 2025
85292dc
fix(nodejs): supports OIDC refresh tokens
takoring Jan 16, 2025
19594e1
fix(nodejs): the flow for OIDC is the same as OAuth
takoring Jan 17, 2025
6999fb6
fix(nodejs): brushing up code for oidc
takoring Jan 20, 2025
02bc8d4
fix(nodejs): lint and format
takoring Jan 20, 2025
4c5f564
fix(nodejs): reverting pre-commit and pre-push
takoring Jan 20, 2025
60acd18
fix(nodejs): delete callbackUrl from config
takoring Jan 20, 2025
c7cdab6
fix(nodejs): error Object Definition
takoring Jan 20, 2025
b7ceb53
fix(nodejs): refactoring config
takoring Jan 20, 2025
f4557c4
fix(nodejs): fixes made in response to reviews
takoring Jan 21, 2025
9c6f293
fix(nodejs): refactored the adminuser update process
takoring Jan 21, 2025
befd0e4
fix(nodejs): when using email, only the password is updated
takoring Jan 21, 2025
3c22aaf
fix(nodejs): oidc domain test add
takoring Jan 22, 2025
d0f462d
fix(nodejs): refactoring test code
takoring Jan 23, 2025
e959a84
fix(nodejs): development code removal
takoring Jan 23, 2025
cdecca2
refactor: buttons by sign-in provider ♻️
ejithon Jan 23, 2025
6781068
Merge remote-tracking branch 'origin/feat/auth-oidc' into feat/auth-oidc
ejithon Jan 23, 2025
1d70430
fix(nodejs): reducing refresh frequency and increasing coverage
takoring Jan 23, 2025
bccebd0
fix: missing icons 🐛
ejithon Jan 23, 2025
dc1aba8
Merge remote-tracking branch 'origin/feat/auth-oidc' into feat/auth-oidc
ejithon Jan 23, 2025
912303b
fix(nodejs): preparing for vulnerability assessment
takoring Jan 24, 2025
18a0b6e
refactor: align auth configs ♻️
ejithon Jan 24, 2025
1b1f5e9
fix(nodejs): changed to validate id_token only
takoring Jan 27, 2025
093484d
Merge branch 'feat/auth-oidc' of github.com:cam-inc/viron into feat/a…
takoring Jan 27, 2025
fbe5ff0
fix(nodejs): oidc client to be a singleton
takoring Jan 27, 2025
310c594
fix(nodejs): not refreshing and mysql shortage
takoring Jan 28, 2025
46a2962
Merge pull request #849 from cam-inc/feat/auth-oidc
takoring Jan 30, 2025
5ce33ac
fix(nodejs): dealing with ci failures
takoring Jan 30, 2025
6a9f4c6
fix(nodejs): example no longer references the dist in vironlib
takoring Jan 30, 2025
b382483
fix(nodejs): differentiating authentication settings and bringing bac…
takoring Jan 30, 2025
b74d0e3
Merge pull request #851 from cam-inc/fix/auth-oidc-ci-fail
takoring Jan 30, 2025
232a8fb
fix(nodejs): demo allowed domains are now environment variables
takoring Jan 31, 2025
7483ff5
Merge pull request #852 from cam-inc/fix/demo-allow-domains-envs
takoring Jan 31, 2025
bc71dde
fix(example): vulnerability Assessment Support
takoring Feb 3, 2025
b00c721
fix(example): comment
takoring Feb 3, 2025
bb70d39
fix(nodejs): redirect uri is not provided
takoring Feb 3, 2025
15e35d1
fix(nodejs): alpha vup
takoring Feb 3, 2025
3cdd393
fix(nodejs): invalid characters in casbin_rule
takoring Feb 3, 2025
739819b
fix(nodejs): invalid characters in admin role
takoring Feb 4, 2025
16c0ee4
fix(example): xss support
takoring Feb 4, 2025
5834bdc
fix(nodejs): invalid characters in admin role update
takoring Feb 4, 2025
4c6a847
fix(nodejs): preventing illegal character registration in administrat…
takoring Feb 10, 2025
e1a1265
fix(nodejs): list size and page limits
takoring Feb 10, 2025
ceebb3f
fix(nodejs): added pagination to the Viron feature
takoring Feb 10, 2025
aa6d077
fix(nodejs): no credential information is returned
takoring Feb 10, 2025
1d48fec
fix(nodejs): test build fail
takoring Feb 10, 2025
b760182
fix(example): csrf support
takoring Feb 12, 2025
33cafd6
fix(example): csrf ignore authorization path
takoring Feb 12, 2025
eda129b
fix(nodejs): role id pattern
takoring Feb 12, 2025
67ef8ee
fix(nodejs): vup
takoring Feb 12, 2025
ea00971
fix(nodejs): page no limit
takoring Feb 13, 2025
bec1cce
Merge pull request #854 from cam-inc/fix/auth-oidc-audit-support
takoring Feb 13, 2025
533462a
fix(example,nodejs,app,website): changelog
takoring Feb 13, 2025
8624684
Merge pull request #860 from cam-inc/fix/auth-oidc-changelog
takoring Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.example-golang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.22

RUN mkdir -p /viron/example/golang
RUN mkdir -p /viron/packages/golang
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.example-nodejs.mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- $PWD/example/nodejs/cert:/viron/example/nodejs/cert
- $PWD/packages/nodejs:/viron/packages/nodejs
- $PWD/packages/linter:/viron/packages/linter
command: npm run dev
command: run dev

mongo:
extends:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.example-nodejs.mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- $PWD/example/nodejs/cert:/viron/example/nodejs/cert
- $PWD/packages/nodejs:/viron/packages/nodejs
- $PWD/packages/linter:/viron/packages/linter
command: npm run dev
command: run dev

mysql:
extends:
Expand Down
127 changes: 124 additions & 3 deletions example/golang/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/cam-inc/viron/example/golang

go 1.16
go 1.22

require (
github.com/cam-inc/viron/packages/golang v0.0.0-00010101000000-000000000000
github.com/getkin/kin-openapi v0.66.0
github.com/getkin/kin-openapi v0.94.0
github.com/go-chi/chi v1.5.1
github.com/go-chi/chi/v5 v5.0.3
github.com/go-chi/chi/v5 v5.0.7
github.com/go-chi/cors v1.2.0
github.com/go-sql-driver/mysql v1.6.0
github.com/golang-migrate/migrate/v4 v4.14.1
Expand All @@ -17,4 +17,125 @@ require (
go.uber.org/automaxprocs v1.4.0
)

require (
cloud.google.com/go v0.93.3 // indirect
cloud.google.com/go/spanner v1.9.0 // indirect
cloud.google.com/go/storage v1.10.0 // indirect
github.com/Blank-Xu/sql-adapter v0.0.0-20210714092925-0bdd0d548758 // indirect
github.com/ClickHouse/clickhouse-go v1.3.12 // indirect
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
github.com/apache/arrow/go/arrow v0.0.0-20200601151325-b2287a20f230 // indirect
github.com/aws/aws-sdk-go v1.34.28 // indirect
github.com/casbin/casbin/v2 v2.34.2 // indirect
github.com/casbin/mongodb-adapter/v3 v3.2.1 // indirect
github.com/cenkalti/backoff/v4 v4.0.2 // indirect
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58 // indirect
github.com/cockroachdb/cockroach-go v0.0.0-20190925194419-606b3d062051 // indirect
github.com/cznic/mathutil v0.0.0-20180504122225-ca4c9f2c1369 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/deepmap/oapi-codegen v1.8.3 // indirect
github.com/denisenkom/go-mssqldb v0.10.0 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712 // indirect
github.com/friendsofgo/errors v0.9.2 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-chi/jwtauth v1.2.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.21.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/goccy/go-json v0.9.7 // indirect
github.com/gocql/gocql v0.0.0-20190301043612-f6df8288f9b4 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/flatbuffers v1.11.0 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/gax-go/v2 v2.1.0 // indirect
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.3.2 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.0.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/k0kubun/pp v2.3.0+incompatible // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/klauspost/compress v1.9.5 // indirect
github.com/ktrysmt/go-bitbucket v0.6.4 // indirect
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
github.com/lestrrat-go/blackmagic v1.0.1 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/jwx v1.2.24 // indirect
github.com/lestrrat-go/option v1.0.0 // indirect
github.com/lib/pq v1.8.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-sqlite3 v1.10.0 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/mutecomm/go-sqlcipher/v4 v4.4.0 // indirect
github.com/nakagami/firebirdsql v0.0.0-20190310045651-3c02a58cfed8 // indirect
github.com/neo4j/neo4j-go-driver v1.8.1-0.20200803113522-b626aa943eba // indirect
github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 // indirect
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24 // indirect
github.com/snowflakedb/glog v0.0.0-20180824191149-f5055e6f21ce // indirect
github.com/snowflakedb/gosnowflake v1.3.5 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
github.com/volatiletech/null/v8 v8.1.2 // indirect
github.com/volatiletech/randomize v0.0.1 // indirect
github.com/volatiletech/strmangle v0.0.1 // indirect
github.com/xanzy/go-gitlab v0.15.0 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.0.2 // indirect
github.com/xdg-go/stringprep v1.0.2 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
gitlab.com/nyarla/go-crypt v0.0.0-20160106005555-d9a5dc2b789b // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
golang.org/x/crypto v0.0.0-20220513210258-46612604a0f9 // indirect
golang.org/x/net v0.0.0-20220513224357-95641704303c // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220513210249-45d2b4557a2a // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.5 // indirect
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
google.golang.org/api v0.56.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71 // indirect
google.golang.org/grpc v1.40.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
modernc.org/b v1.0.0 // indirect
modernc.org/db v1.0.0 // indirect
modernc.org/file v1.0.0 // indirect
modernc.org/fileutil v1.0.0 // indirect
modernc.org/golex v1.0.0 // indirect
modernc.org/internal v1.0.0 // indirect
modernc.org/lldb v1.0.0 // indirect
modernc.org/mathutil v1.0.0 // indirect
modernc.org/ql v1.0.0 // indirect
modernc.org/sortutil v1.1.0 // indirect
modernc.org/strutil v1.1.0 // indirect
modernc.org/zappy v1.0.0 // indirect
)

replace github.com/cam-inc/viron/packages/golang => ../../packages/golang
Loading