Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
e01c5d3
feat: added toolchain to env and request params config and no detecti…
KartikJha Mar 23, 2026
d553aae
fix: updated the logout and callback URLs
KartikJha Mar 24, 2026
e16a251
docs: updated docs to fix PR checks
KartikJha Mar 24, 2026
4992a04
feat: added request param substitution
KartikJha Mar 24, 2026
c68734b
feat: req param parse and sub, envvalues parse and sub
KartikJha Mar 24, 2026
ce81531
chore: lint fixes
KartikJha Mar 24, 2026
eaf91fd
chore: lint fixes
KartikJha Mar 24, 2026
6566740
chore: lint fix
KartikJha Mar 24, 2026
6b12b2d
fix: lint build fix
KartikJha Mar 24, 2026
e6b816e
chore: lint fix
KartikJha Mar 24, 2026
5cd6328
fix: added review fixes, added none key fix for API creation
KartikJha Mar 30, 2026
cc5e333
fix: lint fixes
KartikJha Mar 31, 2026
7bafb93
feat: project detection support added
KartikJha Mar 30, 2026
06d5afb
fix: review comment changes
KartikJha Mar 31, 2026
a250506
fix: linter fixes
KartikJha Mar 31, 2026
350b669
build: test cases added, docs updated
KartikJha Apr 2, 2026
84c483a
fix: linter fixes
KartikJha Apr 2, 2026
647f623
fix: lint errors
KartikJha Apr 2, 2026
cdb5ea8
fix: linter fixes
KartikJha Apr 2, 2026
51a6bc3
build: dev test changes
KartikJha Apr 6, 2026
53cf4a6
fix: dev test messages updated
KartikJha Apr 7, 2026
832003f
fix: flag support added
KartikJha Apr 7, 2026
cf88eca
feat: linking APP and API using client grants API of go-auth0
KartikJha Apr 8, 2026
029e564
fix: product review report fixes
KartikJha Apr 8, 2026
0634b8e
fix: app and api linking warning
KartikJha Apr 9, 2026
b4ce7ca
chore: lint fixes
KartikJha Apr 9, 2026
f108f79
fix: review comment changes
KartikJha Apr 15, 2026
f246b11
fix: lint fixes
KartikJha Apr 15, 2026
22c805a
fix: product review fixes
KartikJha Apr 17, 2026
e24b47c
fix: lint fix
KartikJha Apr 19, 2026
a9fa3f3
fix: --no-input flag fix, port range fix
KartikJha Apr 19, 2026
8e6fd85
fix: native app callbacks and svelte server and spa distinction
KartikJha Apr 20, 2026
65a936c
fix: lint fixes
KartikJha Apr 21, 2026
b2cfd11
fix: ai test feedback fixes
KartikJha Apr 21, 2026
0c82d40
fix: space fix
KartikJha Apr 21, 2026
f2bbc6f
fix: lint fixes
KartikJha Apr 21, 2026
fc397e0
fix: product review fixes
KartikJha Apr 22, 2026
6b40629
fix: docs and spec refer
KartikJha Apr 22, 2026
60dfe3e
fix: lint fixes
KartikJha Apr 23, 2026
524e6ea
fix: manual test fixes
KartikJha Apr 23, 2026
801b18b
fix: fluter web and native detection fix
KartikJha Apr 23, 2026
08fc6f2
fix : lint errors
KartikJha Apr 23, 2026
1f5063e
fix: code review changes
KartikJha Apr 27, 2026
a463fb7
fix: code review changes
KartikJha Apr 27, 2026
3bd98c2
fix: lint issues
KartikJha Apr 27, 2026
b9b9ff5
chore: trigger build
KartikJha Apr 28, 2026
edd08e8
fix: github actions test case failure
KartikJha Apr 28, 2026
1666506
fix: product review fixes
KartikJha Apr 28, 2026
9cba5f9
fix: test case fixed
KartikJha Apr 28, 2026
ee96052
fix: code review fixes
KartikJha May 4, 2026
b2ac1ca
fix: download file size edge case check test added, ambiguous detecti…
KartikJha May 4, 2026
4aa7936
fix: lint fixes, docs
KartikJha May 5, 2026
dc1bfba
fix: build verification suite fixes, expo custom scheme removed, nest…
KartikJha May 5, 2026
09f2247
fix: framework display name, java env file values
KartikJha May 5, 2026
34f57d1
fix: lint fixes
KartikJha May 5, 2026
4349a80
fix: review changes
KartikJha May 10, 2026
a5c1045
fix: review comments use Flags struc prompt methods
KartikJha May 10, 2026
a65ad1c
fix: used apiScopesFor and update identifier validation
KartikJha May 11, 2026
f3c9071
fix: lint and test fixes
KartikJha May 11, 2026
e5c7064
fix: test cases fix
KartikJha May 11, 2026
4c01283
fix: update audience and indentifier flags, update the generateand wr…
KartikJha May 11, 2026
53ee84e
docs: docs updated
KartikJha May 11, 2026
0b7f177
feat: added toolchain to env and request params config and no detecti…
KartikJha Mar 23, 2026
ad940f2
fix: updated the logout and callback URLs
KartikJha Mar 24, 2026
b891a27
docs: updated docs to fix PR checks
KartikJha Mar 24, 2026
1520f7d
feat: added request param substitution
KartikJha Mar 24, 2026
01dc506
feat: req param parse and sub, envvalues parse and sub
KartikJha Mar 24, 2026
e74249e
chore: lint fixes
KartikJha Mar 24, 2026
aaac346
chore: lint fixes
KartikJha Mar 24, 2026
aeee5cd
chore: lint fix
KartikJha Mar 24, 2026
a887304
fix: lint build fix
KartikJha Mar 24, 2026
5b10acc
chore: lint fix
KartikJha Mar 24, 2026
2452f06
fix: added review fixes, added none key fix for API creation
KartikJha Mar 30, 2026
75135a2
fix: lint fixes
KartikJha Mar 31, 2026
866ef79
feat: project detection support added
KartikJha Mar 30, 2026
b2d2188
fix: review comment changes
KartikJha Mar 31, 2026
7fa7991
fix: linter fixes
KartikJha Mar 31, 2026
a490fd4
build: test cases added, docs updated
KartikJha Apr 2, 2026
3de8711
fix: linter fixes
KartikJha Apr 2, 2026
562fe1a
fix: lint errors
KartikJha Apr 2, 2026
0d17100
fix: linter fixes
KartikJha Apr 2, 2026
8f083bb
build: dev test changes
KartikJha Apr 6, 2026
2fb06c4
fix: dev test messages updated
KartikJha Apr 7, 2026
889ebe4
fix: flag support added
KartikJha Apr 7, 2026
dd84f0c
feat: linking APP and API using client grants API of go-auth0
KartikJha Apr 8, 2026
ce015c3
fix: product review report fixes
KartikJha Apr 8, 2026
8fcc4a6
fix: app and api linking warning
KartikJha Apr 9, 2026
3b7539c
chore: lint fixes
KartikJha Apr 9, 2026
9677e00
fix: review comment changes
KartikJha Apr 15, 2026
0e74dfa
fix: lint fixes
KartikJha Apr 15, 2026
27349e5
fix: product review fixes
KartikJha Apr 17, 2026
d8db656
fix: lint fix
KartikJha Apr 19, 2026
c103235
fix: --no-input flag fix, port range fix
KartikJha Apr 19, 2026
d2476bf
fix: native app callbacks and svelte server and spa distinction
KartikJha Apr 20, 2026
7371eec
fix: lint fixes
KartikJha Apr 21, 2026
690348d
fix: ai test feedback fixes
KartikJha Apr 21, 2026
b03a2b3
fix: space fix
KartikJha Apr 21, 2026
ce71696
fix: lint fixes
KartikJha Apr 21, 2026
366ed41
fix: product review fixes
KartikJha Apr 22, 2026
55671b2
fix: docs and spec refer
KartikJha Apr 22, 2026
a706c81
fix: lint fixes
KartikJha Apr 23, 2026
1dfbd50
fix: manual test fixes
KartikJha Apr 23, 2026
5fb13cf
fix: fluter web and native detection fix
KartikJha Apr 23, 2026
f9d3e00
fix : lint errors
KartikJha Apr 23, 2026
c4dcda9
fix: code review changes
KartikJha Apr 27, 2026
eaa3c89
fix: code review changes
KartikJha Apr 27, 2026
9f6108d
fix: lint issues
KartikJha Apr 27, 2026
26979ab
chore: trigger build
KartikJha Apr 28, 2026
4d97a78
fix: github actions test case failure
KartikJha Apr 28, 2026
d0e912c
fix: product review fixes
KartikJha Apr 28, 2026
ec670cd
fix: test case fixed
KartikJha Apr 28, 2026
5648945
fix: code review fixes
KartikJha May 4, 2026
8b351bf
fix: download file size edge case check test added, ambiguous detecti…
KartikJha May 4, 2026
2df078d
fix: lint fixes, docs
KartikJha May 5, 2026
fd8abfd
fix: build verification suite fixes, expo custom scheme removed, nest…
KartikJha May 5, 2026
ce5d71d
fix: framework display name, java env file values
KartikJha May 5, 2026
54b6a8b
fix: lint fixes
KartikJha May 5, 2026
2f2f1c3
fix: review changes
KartikJha May 10, 2026
bc4ef33
fix: review comments use Flags struc prompt methods
KartikJha May 10, 2026
917a729
fix: used apiScopesFor and update identifier validation
KartikJha May 11, 2026
3fb67bb
fix: lint and test fixes
KartikJha May 11, 2026
b13ac7d
fix: test cases fix
KartikJha May 11, 2026
44ce225
fix: update audience and indentifier flags, update the generateand wr…
KartikJha May 11, 2026
2c40a4f
docs: docs updated
KartikJha May 11, 2026
c588e2e
feat(quickstart): add JHipster support in quickstart configurations
bkiran6398 May 12, 2026
135cf0d
fix: lint issues
KartikJha May 14, 2026
cf802d4
revamp logic and remove un-necessary code
ramya18101 May 18, 2026
4ad3bbd
Fix conflicts
ramya18101 May 18, 2026
85691c5
feat: enhance quickstart setup with auto-detection and improved workf…
ramya18101 May 19, 2026
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
61 changes: 39 additions & 22 deletions docs/auth0_quickstarts_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ has_toc: false
---
# auth0 quickstarts setup

Creates an Auth0 application and generates a .env file with the necessary configuration.
Auto-detects your project, creates an Auth0 application and/or API, and generates a config file.

The command will:
1. Check if you are authenticated (and prompt for login if needed)
2. Create an Auth0 application based on the specified type
3. Generate a .env file with the appropriate environment variables

Supported types:
- vite: For client-side SPAs (React, Vue, Svelte, etc.)
- nextjs: For Next.js server-side applications
- fastify: For Fastify web applications
- jhipster-rwa: For JHipster regular web applications
Workflows:
--app Create an application (auto-detects framework).
--api Create an API (prompts to create or link an app).
--api --linked-app-id <id> Create an API linked to an existing application.

## Usage
```
Expand All @@ -26,23 +20,46 @@ auth0 quickstarts setup [flags]
## Examples

```
auth0 quickstarts setup --type vite
auth0 quickstarts setup --type nextjs
auth0 quickstarts setup --type fastify
auth0 quickstarts setup --type vite --name "My App"
auth0 quickstarts setup --type nextjs --port 8080
auth0 quickstarts setup --type jhipster-rwa
auth0 qs setup --type fastify -n "My App" -p 3000
# Interactive setup:
auth0 quickstarts setup

# App only:
auth0 quickstarts setup --app --type spa --framework react

# App with all options:
auth0 quickstarts setup --app --type spa --framework react --build-tool vite --name "My SPA" --port 5173

# API + new app:
auth0 quickstarts setup --api --app --type regular --framework express --identifier https://my-api

# API + existing app:
auth0 quickstarts setup --api --linked-app-id <client-id> --identifier https://my-api

# API with custom settings:
auth0 quickstarts setup --api --linked-app-id <client-id> --identifier https://my-api --scopes "read:data,write:data"
```


## Flags

```
--json Output in json format.
-n, --name string Name of the Auth0 application (default: 'My App' for vite, nextjs and fastify, 'JHipster' for jhipster-rwa)
-p, --port int Port number for the application (default: 5173 for vite, 3000 for nextjs/fastify, 8080 for jhipster-rwa)
-t, --type string Type of quickstart (vite, nextjs, fastify, jhipster-rwa)
--api Create an Auth0 API resource server
--app Create an Auth0 application (SPA, regular web, or native)
--audience string Unique URL identifier for the API (audience), e.g. https://my-api
--build-tool string Build tool used by the project (vite, webpack, cra, none) (default "none")
--callback-url string Override the allowed callback URL for the application
--framework string Framework to configure (e.g., react, nextjs, vue, express)
--identifier string Unique URL identifier for the API (audience), e.g. https://my-api
--linked-app-id string [API] Client ID of an existing application to link to the API (skips app creation)
--logout-url string Override the allowed logout URL for the application
--name string Name of the Auth0 application
--offline-access Allow offline access (enables refresh tokens)
--port int Local port the application runs on (default varies by framework, e.g. 3000, 5173)
--scopes string [API] Comma-separated list of permission scopes for the API
--signing-alg string [API] Token signing algorithm: RS256, PS256, or HS256 (leave blank to be prompted interactively)
--token-lifetime string [API] Access token lifetime in seconds (default: 86400 = 24 hours)
--type string Application type: spa, regular, native, or m2m
--web-origin-url string Override the allowed web origin URL for the application
```


Expand Down
23 changes: 12 additions & 11 deletions docs/auth0_test_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,27 @@ auth0 test login [flags]
auth0 test login
auth0 test login <client-id>
auth0 test login <client-id> --connection-name <connection-name>
auth0 test login <client-id> --connection-name <connection-name> --audience <api-identifier|api-audience>
auth0 test login <client-id> --connection-name <connection-name> --audience <api-identifier|api-audience> --organization <org-id>
auth0 test login <client-id> --connection-name <connection-name> --audience <api-identifier|api-audience> --domain <domain> --params "foo=bar"
auth0 test login <client-id> --connection-name <connection-name> --audience <api-identifier|api-audience> --domain <domain> --scopes <scope1,scope2>
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -s <scope1,scope2> --force
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -s <scope1,scope2> --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -s <scope1,scope2> --json-compact
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -o <org-id> -s <scope1,scope2> -p "foo=bar" -p "bazz=buzz" --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -o <org-id> -s <scope1,scope2> -p "foo=bar","bazz=buzz" --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier|api-audience> -d <domain> -s <scope1,scope2> --force --json
auth0 test login <client-id> --connection-name <connection-name> --identifier <api-identifier>
auth0 test login <client-id> --connection-name <connection-name> --identifier <api-identifier> --organization <org-id>
auth0 test login <client-id> --connection-name <connection-name> --identifier <api-identifier> --domain <domain> --params "foo=bar"
auth0 test login <client-id> --connection-name <connection-name> --identifier <api-identifier> --domain <domain> --scopes <scope1,scope2>
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -s <scope1,scope2> --force
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -s <scope1,scope2> --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -s <scope1,scope2> --json-compact
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -o <org-id> -s <scope1,scope2> -p "foo=bar" -p "bazz=buzz" --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -o <org-id> -s <scope1,scope2> -p "foo=bar","bazz=buzz" --json
auth0 test login <client-id> -c <connection-name> -a <api-identifier> -d <domain> -s <scope1,scope2> --force --json
```


## Flags

```
-a, --audience string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
--audience string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
-c, --connection-name string The connection name to test during login.
-d, --domain string One of your custom domains.
--force Skip confirmation.
-a, --identifier string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
--json Output in json format.
--json-compact Output in compact json format.
-o, --organization string organization-id to use for the login. Can use organization-name if allow_organization_name_in_authentication_api is enabled for tenant
Expand Down
21 changes: 11 additions & 10 deletions docs/auth0_test_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ has_toc: false
---
# auth0 test token

Request an access token for a given application. Specify the API you want this token for with `--audience` (API Identifier). Additionally, you can also specify the `--scopes` to grant.
Request an access token for a given application. Specify the API you want this token for with `--identifier` (API Identifier). Additionally, you can also specify the `--scopes` to grant.

## Usage
```
Expand All @@ -16,23 +16,24 @@ auth0 test token [flags]

```
auth0 test token
auth0 test token <client-id> --audience <api-audience|api-identifier> --organization <org-id> --scopes <scope1,scope2> --params "foo=bar"
auth0 test token <client-id> -a <api-audience|api-identifier> -o <org-id> -s <scope1,scope2>
auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --force
auth0 test token <client-id> -a <api-audience|api-identifier> -o <org-id> -s <scope1,scope2> -p "foo=bar" -p "bazz=buzz" --force
auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --json
auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --json-compact
auth0 test token <client-id> -a <api-audience|api-identifier> -o <org-id> -s <scope1,scope2> -p "foo=bar","bazz=buzz" --json
auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --force --json
auth0 test token <client-id> --identifier <api-identifier> --organization <org-id> --scopes <scope1,scope2> --params "foo=bar"
auth0 test token <client-id> -a <api-identifier> -o <org-id> -s <scope1,scope2>
auth0 test token <client-id> -a <api-identifier> -s <scope1,scope2> --force
auth0 test token <client-id> -a <api-identifier> -o <org-id> -s <scope1,scope2> -p "foo=bar" -p "bazz=buzz" --force
auth0 test token <client-id> -a <api-identifier> -s <scope1,scope2> --json
auth0 test token <client-id> -a <api-identifier> -s <scope1,scope2> --json-compact
auth0 test token <client-id> -a <api-identifier> -o <org-id> -s <scope1,scope2> -p "foo=bar","bazz=buzz" --json
auth0 test token <client-id> -a <api-identifier> -s <scope1,scope2> --force --json
```


## Flags

```
-a, --audience string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
--audience string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
-d, --domain string One of your custom domains.
--force Skip confirmation.
-a, --identifier string The unique identifier of the target API you want to access. For Machine to Machine Applications, only the enabled APIs will be shown within the interactive prompt.
--json Output in json format.
--json-compact Output in compact json format.
-o, --organization string organization-id to use for the login. Can use organization-name if allow_organization_name_in_authentication_api is enabled for tenant
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ var RequiredScopes = []string{
"openid",
"offline_access", // For retrieving refresh token.
"create:clients", "delete:clients", "read:clients", "update:clients",
"read:client_grants",
"create:client_grants", "read:client_grants",
"create:resource_servers", "delete:resource_servers", "read:resource_servers", "update:resource_servers",
"create:roles", "delete:roles", "read:roles", "update:roles",
"create:rules", "delete:rules", "read:rules", "update:rules",
Expand Down
6 changes: 5 additions & 1 deletion internal/auth0/client_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import (
)

type ClientGrantAPI interface {
// List all client grants.
// Create a new client grant, authorizing the given client for the specified API (audience).
// Returns an error if the grant already exists or the request fails.
Create(ctx context.Context, g *management.ClientGrant, opts ...management.RequestOption) error

// List returns all client grants for the tenant, with optional filtering via opts.
List(ctx context.Context, opts ...management.RequestOption) (*management.ClientGrantList, error)
}
19 changes: 19 additions & 0 deletions internal/auth0/mock/client_grant_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading