Skip to content

Add AUTH0_SCOPE to all token request snippets#1

Open
nicogarcia wants to merge 6 commits intomchang16-auth:quickstart/loginfrom
nicogarcia:quickstart/login
Open

Add AUTH0_SCOPE to all token request snippets#1
nicogarcia wants to merge 6 commits intomchang16-auth:quickstart/loginfrom
nicogarcia:quickstart/login

Conversation

@nicogarcia
Copy link
Copy Markdown

Summary

  • Adds scope parameter (AUTH0_SCOPE env var) to the client_credentials grant in all 16 language snippets (get-token + combined m2m variants)
  • Updates YAML definition with auth0Scope input, %AUTH0_SCOPE% placeholder, and env snippet entry

Test plan

  • Regenerate definitions with npm run generate-definitions and verify output
  • Confirm scope appears in all snippet lines arrays in the generated JSON

Adds scope parameter to the client_credentials grant in all get-token
and combined m2m snippets (curl, node, python, go, java, csharp, php,
ruby) and the YAML definition (input, placeholder, env snippet).
Replaces literal YAML placeholder with language-native env var reads
(API_ENDPOINT) in all call-api and m2m combined snippets. Adds
API_ENDPOINT to the env snippet in the YAML definition. Snippets are
now fully self-contained and runnable with just env vars.

Also adds test/TESTING.md documenting a docker-compose live integration
test approach.
…ions

Replace old split get-token/call-api/combined snippets with single
production-ready scripts per language (node, go, java, python, ruby,
php, csharp). Each script: progress logs, token expiry display, scopes,
token_type from response, caching comment.

Add run/ directory with per-language execution instructions.
Restructure YAML: OS-tabbed env vars, grouped code sources, run step.
Remove old 01-Login sample app and legacy snippets.
- Replace $$""" raw string literal with concatenation (hljs v10 chokes on C# 11 syntax)
- Change csharp language to cs for hljs compatibility
- Add technology field to m2m script snippets for top-level tab filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant